AlistairMonkeyFinger
Programmer
Hi,
i'm having problems updating a ProgressMonitor in my application when a job is kicked off. I've created the ProgressMonitor
where jdp is a JDesktopPane. Then, inside a loop i call
where i is the loop counter.
The ProgressMonitor box is displayed but the contents aren't fully displayed until the loop has finished. I've tried calling a variety of different update, repaint, validate etc methods inside my loop but cannot get the ProgressMoinitor to display properly. Has anyone any ideas ?
Give us a shout if you need some code
Thanks
Alistair![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
i'm having problems updating a ProgressMonitor in my application when a job is kicked off. I've created the ProgressMonitor
Code:
ProgressMonitor pm = new ProgressMonitor (jdp,"Updating table","Please wait..",0,ct.getRowCount() );
where jdp is a JDesktopPane. Then, inside a loop i call
Code:
pm.setProgress(i);
The ProgressMonitor box is displayed but the contents aren't fully displayed until the loop has finished. I've tried calling a variety of different update, repaint, validate etc methods inside my loop but cannot get the ProgressMoinitor to display properly. Has anyone any ideas ?
Give us a shout if you need some code
Thanks
Alistair
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)