This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Background Process" Watch "Background Process" New topic

Background Process

Mazen Mahmoud

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

Joined: Oct 27, 2005
Posts: 19651

Check out javax.swing.SwingWorker

How To Ask Questions How To Answer Questions
subject: Background Process
Similar Threads
Find jLabel reference to update (from array of jLabels)
two threads always active in java
Checking the state of a thread
class won't daemonize
firing Event problem