|
-
Dec 14th, 2006, 02:13 AM
#1
Thread Starter
Frenzied Member
JProgressBar
I have a JFrame with a button which connects to a SQL server. In the try-catch code, i have progressBar.setValue(*value*); methods. When the code is executed and it is connecting to the server, the progress bar doesn't update on the form.
I read that this is due to the fact that the UI doesn't update the form until after the thread is done processing.
Is there any type of Java equilvalent code to the VB.net code Application.DoEvents() (or VB6 DoEvents function)?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|