Next: JOptionPane significant methods
Up: Option dialogs
Previous: JOptionPane constants
There are several versions of the JOptionPane constructor:
- public JOptionPane() -- creates a simple instance of JOptionPane.
- public JOptionPane( Object message ) -- creates a simple instance of JOptionPane
containing the specified message within its message area.
- public JOptionPane( Object message, int messageType ) -- creates a simple instance of
JOptionPane containing the specified message within its message area, and implementing the supplied
message type.
- public JOptionPane( Object message, int messageType, int optionType ) -- creates a
simple instance of JOptionPane containing the specified message within its message area and
implementing the supplied message and option types.
- public JOptionPane( Object message, int messageType,
int optionType, Icon icon ) -- creates a simple instance of JOptionPane containing the specified
message within its message area, and implementing the supplied message and
option types. The icon's parameter provides a programmer specified icon image to
be displayed within the option pane.
- public JOptionPane( Object message, int messageType, int optionType,
Icon icon, Object options[] ) -- creates a simple instance of JOptionPane containing the specified
message within its message area and implementing the supplied message and
option types. The icon's parameter provides a programmer specified icon image to
be displayed within the option pane. The options array holds a list of options that
will be inserted into the instance's input area.
- public JOptionPane( Object message, int messageType, int optionType,
Icon icon, Object options[], Object initialValue ) -- creates a simple instance of JOptionPane
containing the specified message within its message area, and implementing the supplied message and
option types. The icon's parameter provides a programmer specified icon image to
be displayed within the option pane. The options array holds a list of options that
will be inserted into the instance's input area, and the supplied initialValue determines
the list item initially selected.
Next: JOptionPane significant methods
Up: Option dialogs
Previous: JOptionPane constants
Dave Marshall
4/14/1999