Mega Code Archive

 
Categories / Java Tutorial / Swing
 

The JOptionPane Option Type Argument

The optionType constructor argument is used to determine the configuration for the set of buttons in the button area. DEFAULT_OPTION for a single OK button OK_CANCEL_OPTION for OK and Cancel buttons YES_NO_CANCEL_OPTION for Yes, No, and Cancel buttons YES_NO_OPTION for Yes and No buttons