Java Reference
In-Depth Information
The message type of the JOptionPane helps determine the default icon to display in the
icon area of the option pane. For plain messages, there are no icons. The remaining four default
icons—for informational, question, warning, and error messages—are shown in Table 9-4 for
the different look and feel types.
Table 9-4. JOptionPane Icons for the Different Look and Feel Types
Look and Feel
Informational
Question
Warning
Error
Motif
Windows
Metal
Ocean
The available set of UIResource -related properties for a JOptionPane is shown in Table 9-5.
For the JOptionPane component, there are 56 different properties.
Table 9-5. JOptionPane UIResource Elements
Property String
Object Type
OptionPane.actionMap
ActionMap
OptionPane.background
Color
OptionPane.border
Border
OptionPane.buttonAreaBorder
Border
OptionPane.buttonClickThreshhold
Integer
OptionPane.buttonFont
Font
OptionPane.buttonOrientation
Integer
OptionPane.buttonPadding
Integer
OptionPane.cancelButtonMnemonic
String
OptionPane.cancelButtonText
String
OptionPane.cancelIcon
Icon
OptionPane.errorDialog.border.background
Color
OptionPane.errorDialog.titlePane.background
Color
OptionPane.errorDialog.titlePane.foreground
Color
OptionPane.errorDialog.titlePane.shadow
Color
Search WWH ::




Custom Search