This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "thread animation problem" Watch "thread animation problem" New topic

thread animation problem

Chris Brat
Ranch Hand

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

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();

It is sorta covered in the JavaRanch Style Guide.
subject: thread animation problem
It's not a secret anymore!