JOptionPane Dialogs
Home ] Up ] [ JOptionPane Dialogs ] JFileChooser Dialogs ] JColorChooser Dialogs ] Writing Your Own Dialogs ] Modal and Non-Modal Dialogs ] A FontChooser Dialog ]

 

Message Dialogs
Confirm Dialogs
Input Dialogs
Option Dialogs

 

The JOptionPane class provides a useful set of dialog boxes, from the very simple to the fairly complex.  It's surprising how much you can accomplish using just one of the static methods provided by JOptionPane.  You can create:

  • Message Dialog -- Tells the user about something that has happened. 
  • Confirm Dialog -- Asks a confirming question, like yes/no/cancel. 
  • Input Dialog -- Prompts for some input. 
  • Option Dialog -- The Grand Unification of the above three.
 

This page was last modified on 02 October, 2007