Java Reference
In-Depth Information
Motif
Windows
Ocean
Figure 6-3.
Menu components under different look and feel types
In regard to the specific appearance of the
JMenuBar
, the available set of
UIResource
-related
properties is shown in Table 6-2. There are 12 properties available for the
JMenuBar
component.
Table 6-2.
JMenuBar UIResource Elements
Property String
Object Type
MenuBar.actionMap
ActionMap
MenuBar.background
Color
MenuBar.border
Border
MenuBar.borderColor
Color
MenuBar.darkShadow
Color
MenuBar.font
Font
MenuBar.foreground
Color
MenuBar.gradient
List
MenuBar.highlight
Color
MenuBar.shadow
Color
MenuBar.windowBindings
Object[ ]
MenuBarUI
String