JProgressBar processing

I m a Java programmer (J2SE). 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.

The main problem is that 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...

[518 byte] By [gajesha] at [2007-11-27 10:40:54]
# 1

"How to Use Progress Bars":

http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html

camickra at 2007-7-28 19:09:32 > top of Java-index,Desktop,Core GUI APIs...
# 2

> I m a Java programmer (J2SE). 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.

>

> The main problem is that 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...

If you need more control than progress monitors as listed in the tutorial posted by camickr (which should be more than enough for most tasks), do a google search for ExecutorService and Thread Pools

c0demonk3ya at 2007-7-28 19:09:32 > top of Java-index,Desktop,Core GUI APIs...