Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to create dialog box in swing that will close automatically after some time.  RSS feed

 
phooton misra
Ranch Hand
Posts: 52
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
somebody ,please suggest me how to create dialog box in swing that will close automatically after some time?
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before showing the dialog, start a Swing Timer that calls dispose() or setVisible(false) from it's actionPerformed(...).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!