Asyncronous Update of UI elements
I'm doing a simple batch image processor in Swing using JDK 6
Now I have a problem. I want to present a progress dialog of the images that are being processed.
Now since the code that does the processing is invoked in the 'button pressed' event, the UI doesn't get shown properly.
So I thought, "no problem just use a SwingWorker", but that means interacting with the UI from the worker thread which also doesn't sound correct.
What should be the correct way to do the update?
I don't need an exact answer, some pointers to documentation would already be ok.
Paulo (a Swing newbie)