Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a ProgressMonitor within a JDesktopPane

Status
Not open for further replies.
May 13, 2002
75
GB
Hi,

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);
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top