• Post Reply Bookmark Topic Watch Topic
  • New Topic

Closing a dialog box

 
Holly Leery
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of code would I use to close a dialog box automatically when a certain number is entered and ok is hit.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / AWT / SWT / JFace forum...
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default, when a user clicks a JOptionPane created button the dialog closes, if you want to check the user input before closing the dialog, you must implement your own property change listener.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!