• Post Reply Bookmark Topic Watch Topic
  • New Topic

closing a JDialog box  RSS feed

 
Joe Guzzardo
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a JList inside of a JDialog. When the user selects an item in the JList I would like the JDialog to close automatically instead of requiring the user the manually close the dialog box. Any ideas? Thanks in advance.
 
Joe Guzzardo
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution proved to be pretty trivial, all I had to do was call dispose on the dialog in the listener inner class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!