Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to run multiple Swing Worker objects sequentially?

796293Sep 2 2008 — edited Sep 3 2008
Hi 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2008
Added on Sep 2 2008
9 comments
591 views