next up previous
Next: JOptionPane constructors Up: Option dialogs Previous: Option dialogs

JOptionPane constants

The following constants set a variety of properties:

UNINITIALIZED_VALUE] -- (defined as public static final Object) This constant contains an uninitialized value used as the initial value returned from the input field if the user has not yet made a selection.

The following constants are all defined as public static final int and control what buttons are displayed in the button area of the JOptionPane instance.

DEFAULT_OPTION
YES_NO_OPTION
YES_NO_CANCEL_OPTION
OK_CANCEL_OPTION
YES_OPTION
NO_OPTION
CANCEL_OPTION
OK_OPTION
CLOSED_OPTION

The following constants (public static final int) defines the message type support by the JOptionPane class.

ERROR_MESSAGE
INFORMATION_MESSAGE
WARNING_MESSAGE
QUESTION_MESSAGE
PLAIN_MESSAGE

These constants (public static final String)hold property name strings for the properties of the JOptionPane instance. These values are used to reference specific option pane properties.

ICON_PROPERTY
MESSAGE_PROPERTY
VALUE_PROPERTY
OPTIONS_PROPERTY
INITIAL_VALUE_PROPERTY
MESSAGE_TYPE_PROPERTY
OPTION_TYPE_PROPERTY
SELECTION_VALUES_PROPERTY
INITIAL_SELECTION_VALUE_PROPERTY
INPUT_VALUE_PROPERTY
WANTS_INPUT_PROPERTY



Dave Marshall
4/14/1999