How to run multiple Swing Worker objects sequentially?
796293Sep 2 2008 — edited Sep 3 2008Hi all,
Here's my problem; I have a GUI that dependent on user input runs a couple of processes. Now some are heavy weight Java tasks and some are time consuming system calls. I wanted a text area in the GUI to update the user as to which process is running. To that end I have created a SwingWorker object for each of the processes. The problem now is that when I execute the SwingWorkers they all start pretty much simultaneously where I want them to run sequentially. How do I get each subsequent process to wait for the one that preceded it? Help would be greatly appreciated!
thanks!