Java Reference
In-Depth Information
•
ICON_PROPERTY
•
INITIAL_SELECTION_VALUE_PROPERTY
•
INITIAL_VALUE_PROPERTY
•
INPUT_VALUE_PROPERTY
•
MESSAGE_PROPERTY
•
MESSAGE_TYPE_PROPERTY
•
OPTION_TYPE_PROPERTY
•
OPTIONS_PROPERTY
•
SELECTION_VALUES_PROPERTY
•
VALUE_PROPERTY
•
WANTS_INPUT_PROPERTY
If you don't use the factory methods of
JOptionPane
, you can instead use a
PropertyChangeListener
to listen for changes to the bound properties. This would allow
you to passively listen for changes to bound properties, instead of actively getting them
after the change.
Customizing a JOptionPane Look and Feel
Each installable Swing look and feel provides a different
JOptionPane
appearance and set of
default
UIResource
values. Figure 9-12 shows the appearance of the
JOptionPane
container for
the preinstalled set of look and feel types: Motif, Windows, and Ocean.
Figure 9-12.
JOptionPane under different look and feel types