Each of the ComponentUIs provided by MetalLookAndFeel derives its behavior from the defaults
table. Unless otherwise noted each of the ComponentUI
implementations in this package document the set of defaults they
use. Unless otherwise noted the defaults are installed at the time
installUI is invoked, and follow the recommendations
outlined in LookAndFeel for installing defaults.
MetalLookAndFeel derives it's color palette and fonts from
MetalTheme. The default theme is OceanTheme. The theme
can be changed using the setCurrentTheme method, refer to it
for details on changing the theme. Prior to 1.5 the default
theme was DefaultMetalTheme. The system property
"swing.metalTheme" can be set to "steel" to indicate
the default should be DefaultMetalTheme.
Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
MetalTheme, DefaultMetalTheme, OceanTheme
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | MetalLookAndFeel.
FontActiveValue redirects to the appropriate metal theme method. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | checkedSystemFontSettings
Set to true first time we've checked swing.useSystemFontSettings. |
| private static boolean | checkedWindows
True if checked for windows yet. |
| private static MetalTheme | |
| private static boolean | isWindows
True if running on Windows. |
| private static boolean | |
| pack-priv static ReferenceQueue | |
| private static boolean | useSystemFonts
True indicates we should use system fonts, unless the developer has specified otherwise with Application.useSystemFontSettings. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| pack-priv static void | |
| public static ColorUIResource | Returns: the separator accelerator foreground colorReturns the accelerator foreground color of the current theme. |
| public static ColorUIResource | Returns: the accelerator selected foreground colorReturns the accelerator selected foreground color of the current theme. |
| public static ColorUIResource | |
| public static ColorUIResource | |
| public static ColorUIResource | Returns: the control dark shadow colorReturns the control dark shadow color of the current theme. |
| public static ColorUIResource | Returns: the control disabled colorReturns the control disabled color of the current theme. |
| public static ColorUIResource | Returns: the control highlight colorReturns the control highlight color of the current theme. |
| public static ColorUIResource | |
| public static ColorUIResource | Returns: the control shadow colorReturns the control shadow color of the current theme. |
| public static ColorUIResource | Returns: the control text colorReturns the control text color of the current theme. |
| public static FontUIResource | Returns: the control text fontReturns the control text font of the current theme. |
| public static MetalTheme | Returns: the current themeReturn the theme currently being used by |
| public UIDefaults | Returns: the look and feel defaultsOverrides javax. Returns the look and feel defaults. |
| public String | Returns: a short description for the look and feelImplements abstract javax. Returns a short description of this look and feel. |
| public static ColorUIResource | |
| public Icon | Returns: Disabled icon, or null if a suitable Icon can not be generated.JComponent that will display the Icon, may be null component, Icon Icon to generate disable icon from. icon)Overrides javax. Returns an |
| public Icon | Returns: Disabled and Selected icon, or null if a suitable Icon can not be generated.JComponent that will display the Icon, may be null component, Icon Icon to generate disabled and selected icon from. icon)Overrides javax. Returns an |
| public static ColorUIResource | |
| public static ColorUIResource | Returns: the highlighted text colorReturns the highlighted text color of the current theme. |
| public String | Returns: the identifier of this look and feelImplements abstract javax. Returns an identifier for this look and feel. |
| public static ColorUIResource | Returns: the inactive control text colorReturns the inactive control text color of the current theme. |
| public static ColorUIResource | Returns: the inactive system text colorReturns the inactive system text color of the current theme. |
| public LayoutStyle | Returns: LayoutStyle implementing the Java look and feel design guidelinesOverrides javax. Returns a |
| public static ColorUIResource | Returns: the menu background colorReturns the menu background color of the current theme. |
| public static ColorUIResource | Returns: the menu disabled foreground colorReturns the menu disabled foreground color of the current theme. |
| public static ColorUIResource | Returns: the menu foreground colorReturns the menu foreground color of the current theme. |
| public static ColorUIResource | Returns: the menu selected background colorReturns the menu selected background color of the current theme. |
| public static ColorUIResource | Returns: the menu selected foreground colorReturns the menu selected foreground color of the current theme. |
| public static FontUIResource | |
| public String | Returns: the name of this look and feelImplements abstract javax. Returns the name of this look and feel. |
| public static ColorUIResource | Returns: the primary control colorReturns the primary control color of the current theme. |
| public static ColorUIResource | Returns: the primary control dark shadow colorReturns the primary control dark shadow color of the current theme. |
| public static ColorUIResource | Returns: the primary control highlight colorReturns the primary control highlight color of the current theme. |
| public static ColorUIResource | Returns: the primary control info colorReturns the primary control info color of the current theme. |
| public static ColorUIResource | Returns: the primary control shadow colorReturns the primary control shadow color of the current theme. |
| public static ColorUIResource | Returns: the separator background colorReturns the separator background color of the current theme. |
| public static ColorUIResource | Returns: the separator foreground colorReturns the separator foreground color of the current theme. |
| public static FontUIResource | |
| public boolean | Returns: trueOverrides javax. Returns |
| public static ColorUIResource | Returns: the system text colorReturns the system text color of the current theme. |
| public static FontUIResource | |
| public static ColorUIResource | Returns: the text highlight colorReturns the text highlight color of the current theme. |
| public static ColorUIResource | |
| public static FontUIResource | |
| public static ColorUIResource | |
| public static ColorUIResource | Returns: the window background colorReturns the window background color of the current theme. |
| public static ColorUIResource | Returns: the window title background colorReturns the window title background color of the current theme. |
| public static FontUIResource | Returns: the window title fontReturns the window title font of the current theme. |
| public static ColorUIResource | Returns: the window title foreground colorReturns the window title foreground color of the current theme. |
| public static ColorUIResource | Returns: the window title inactive background colorReturns the window title inactive background color of the current theme. |
| public static ColorUIResource | Returns: the window title inactive foreground colorReturns the window title inactive foreground color of the current theme. |
| protected void | initClassDefaults(UIDefaults
the table)UIDefaults instance the entries are
added toOverrides javax. Populates |
| protected void | initComponentDefaults(UIDefaults
the table)UIDefaults to add the values toOverrides javax. Populates |
| private void | initResourceBundle(UIDefaults table)
Hides javax. Initialize the defaults table with the name of the ResourceBundle used for getting localized defaults. |
| protected void | initSystemColorDefaults(UIDefaults
the table)UIDefaults object the values are added toOverrides javax. Populates |
| public boolean | Returns: falseImplements abstract javax. Returns |
| public boolean | Returns: trueImplements abstract javax. Returns |
| pack-priv static boolean | |
| public void | provideErrorFeedback(Component component)
Overrides javax. Invoked when the user attempts an invalid operation,
such as pasting into an uneditable |
| public static void | |
| private static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean |