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]

# 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