Java Reference
In-Depth Information
Table 20-6. UIResource Collection (Continued)
UIResource Implementation
Wrapped Class/Interface
ComponentInputMapUIResource
InputMap / ComponentInputMap
DefaultListCellRenderer.UIResource
ListCellRenderer
DefaultMenuLayout
LayoutManager / LayoutManager2
DefaultTableCellRenderer.UIResource
TableCellRenderer
DimensionUIResource
Dimension
FontUIResource
Font
IconUIResource
Icon
InputMapUIResource
InputMap
InsetsUIResource
Insets
JScrollPane.ScrollBar
JScrollBar
MetalBorders.ButtonBorder
Border
MetalBorders.Flush3DBorder
Border
MetalBorders.InternalFrameBorder
Border
MetalBorders.MenuBarBorder
Border
MetalBorders.MenuItemBorder
Border
MetalBorders.OptionDialogBorder
Border
MetalBorders.PaletteBorder
Border
MetalBorders.PopupMenuBorder
Border
MetalBorders.RolloverButtonBorder
Border
MetalBorders.ScrollPaneBorder
Border
MetalBorders.TextFieldBorder
Border
MetalBorders.ToggleButtonBorder
Border
MetalBorders.ToolBarBorder
Border
MetalCheckBoxIcon
Icon
MetalComboBoxEditor.UIResource
ComboBoxEditor
MetalIconFactory.PaletteCloseIcon
Icon
ScrollPaneLayout.UIResource
ScrollPaneLayout
The following code demonstrates the use of the ColorUIResource class to set the button
background to a value that will change when the installed look and feel changes.
Color background = new ColorUIResource(Color.PINK);
UIManager.put("Button.background", background);
 
Search WWH ::




Custom Search