Java Reference
In-Depth Information
Motif
Windows
Ocean
Figure 6-6.
JPopupMenu under different look and feel types
The available set of
UIResource
-related properties for a
JPopupMenu
is shown in Table 6-10.
For the
JPopupMenu
component, there are five different properties.
Table 6-10.
JPopupMenu UIResource Elements
Property String
Object Type
PopupMenu.actionMap
ActionMap
PopupMenu.background
Color
PopupMenu.border
Border
PopupMenu.consumeEventOnClose
Boolean
PopupMenu.font
Font
PopupMenu.foreground
Color
PopupMenu.popupSound
String
PopupMenu.selectedWindowInputMapBindings
Object[ ]
PopupMenu.selectedWindowInputMapBindings.RightToLeft
Object[ ]
PopupMenuSeparatorUI
String
PopupMenuUI
String