• 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: 21050
85
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!