jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane" Watch "JOptionPane" New topic


Bron Czimes
Ranch Hand

Joined: May 09, 2004
Posts: 44
me again!

just wondering if there is an option to close a dialog box (OptionPane) the same way as a normal frame (ie this.dispose())

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Not really. But you could build your own OptionPane using a JDialog which has most all the same features as a JFrame and can be modal.

GenRocket - Experts at Building Test Data
wood burning stoves
subject: JOptionPane
jQuery in Action, 3rd edition