GUI-related tasks to run in thread apart from Event Dispatch Thread
Hello,
I have written a GUI application, A1, that periodically repaints a JPanel, say once every second. There is another application, A2, which is used for drawing plots and is spawned from A1.
Suppose A1 is running, and the user decides to spawn A2 from it. The user may then ask A2 to draw a simple graph which causes no problems. However, the user may then ask A2 to draw a more complex graph which may take 30 secs to draw. Since A1 is constantly puttin tasks on the Event Dispatch Thread, it will be blocked for 30 secs, until A2 releases its hold on the Event Dispatch Thread (i.e. after it finishes drawing the complex graph). This is the behaviour that i am encountering at the moment.
Is there any way at all to offload drawing the graph to another thread apart from the Event Dispatch Thread? More generally, can GUI tasks run in threads apart from the EDT? Thanks.
Mitch.

