Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes thread animation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "thread animation problem" Watch "thread animation problem" New topic
Author

thread animation problem

Chris Brat
Ranch Hand

Joined: May 22, 2003
Posts: 108
Hi,
I've created


SCJP 1.2, SCJP 5, SCBCD
Chris Brat
Ranch Hand

Joined: May 22, 2003
Posts: 108
That wasnt supposed to happen.
I've created a dialog that displays a status bar that is updated by a thread every 100 ms.
Its just to show the user a msg (that is updated everytime the thread executes).
This does work but the screen doesnt update immediately, and by the time the entire dialog is loaded the operation is on its last stage anyway, so it isn't performing its function.
Is there anyway that i can force the screen to be displayed in its entirety before other operations continue... or to actually check that all the components of the dialog (and the dialog) are visible and shown correctly?
something like
boolean status = myDialog.isDialogAndSubComponentsFinshed();

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: thread animation problem