wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Background Process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Background Process" Watch "Background Process" New topic
Author

Background Process

Mazen Mahmoud
Greenhorn

Joined: Oct 25, 2007
Posts: 20
I have a desktop application. I want to create a background thread that will call some functions or wait for an event to occur, without blocking the main thread (the user must be able to access the main form, click buttons etc.). The background thread is hidden for him. And when the function called is finihed or specified event occurs, the main form will be notified.
Any Help?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19674
    
  18

Check out javax.swing.SwingWorker


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Background Process