This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Worker  RSS feed

 
Vamsi Chada
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple screen with 2 buttons and on clicking submit button a new window is opened asking for confirmation.
I do this with pretty ease with swingworker rendering a runnable when its a dispatch thread else i use Invokelater on the Eventqueue.

Is there something wrong with this approach?
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A modal JDialog, possibly JOptionPane, is much easier.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!