Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Background Process

 
Mazen Mahmoud
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out javax.swing.SwingWorker
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic