I wrote an application and part of the gui has a progress bar and some other
widgets which are suppose to get updated while the computer is processing
away. However the JPanel containing these components only appears after
processing finishes. Why is this?
Do I have to create this panel in a seperate thread?
Or do I have to add listeners to do the updating?
I also read something about a SwingWorker thread included in
javax.swing.Utilities (not part of standard API)? Is this the way to go?
Much help appreciated thanks
Alex
Harald Hein - 31 Aug 2003 17:09 GMT
> However the JPanel containing these components only appears after
> processing finishes. Why is this?
Most likely because you block the event dispatching thread.