Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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: 5148
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