|
-
Dec 5th, 2006, 08:06 AM
#1
Thread Starter
New Member
event dispatch thread and JProgressBar
I m a Java programmer (J2SE). The main problem is that i m working in a industry so there is no body to solve my problem.
I have one problem, if u solve this then i will be very thankful to u.
I want to see the immediate effect of swing command like lblStatus.setText(?).. and jProgressBar.setValue(?)... For this purpose, i used invokeAndWait() method but error appears: "u can't run this method in event-dispatch thread" similarly, Thread.getCurrentThread().sync() and doLayout() method also failed...
plz send me solution on my given e-mail ID and also a cc to <[email protected]>
Thanks,
GAJESH TRIPATHI (mca)
-
Dec 5th, 2006, 11:05 AM
#2
Re: event dispatch thread and JProgressBar
We usually just answer in the forum and expect the e-mail notification to take care of things.
JLabel.setText() and JProgressBar.setValue() usually trigger an immediate redraw of the component anyway, so what is the exact situation where you're experiencing a delay?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|