OceanThemepublic class DefaultMetalTheme extends MetalTheme
MetalTheme providing the original look of the Java Look and Feel, code-named "Steel". Refer to MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme) for details on changing the default theme.  All colors returned by DefaultMetalTheme are completely opaque. 
DefaultMetalTheme uses bold fonts for many controls. To make all controls (with the exception of the internal frame title bars and client decorated frame title bars) use plain fonts you can do either of the following: swing.boldMetal to false. For example, java -Dswing.boldMetal=false MyApp. swing.boldMetal to Boolean.FALSE. For example: UIManager.put("swing.boldMetal", Boolean.FALSE); swing.boldMetal, if set, takes precedence over the system property of the same name. After setting this defaults property you need to re-install MetalLookAndFeel, as well as update the UI of any previously created widgets. Otherwise the results are undefined. The following illustrates how to do this: 
   // turn off bold fonts
   UIManager.put("swing.boldMetal", Boolean.FALSE);
   // re-install the Metal Look and Feel
   UIManager.setLookAndFeel(new MetalLookAndFeel());
   // Update the ComponentUIs for all Components. This
   // needs to be invoked for all windows.
   SwingUtilities.updateComponentTreeUI(rootComponent);
   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 XMLEncoder.
| Constructor | Description | 
|---|---|
| DefaultMetalTheme() | Creates and returns an instance of  DefaultMetalTheme. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| FontUIResource | getControlTextFont() | Returns the control text font. | 
| FontUIResource | getMenuTextFont() | Returns the menu text font. | 
| String | getName() | Returns the name of this theme. | 
| protected ColorUIResource | getPrimary1() | Returns the primary 1 color. | 
| protected ColorUIResource | getPrimary2() | Returns the primary 2 color. | 
| protected ColorUIResource | getPrimary3() | Returns the primary 3 color. | 
| protected ColorUIResource | getSecondary1() | Returns the secondary 1 color. | 
| protected ColorUIResource | getSecondary2() | Returns the secondary 2 color. | 
| protected ColorUIResource | getSecondary3() | Returns the secondary 3 color. | 
| FontUIResource | getSubTextFont() | Returns the sub-text font. | 
| FontUIResource | getSystemTextFont() | Returns the system text font. | 
| FontUIResource | getUserTextFont() | Returns the user text font. | 
| FontUIResource | getWindowTitleFont() | Returns the window title font. | 
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
public DefaultMetalTheme()
DefaultMetalTheme.public String getName()
"Steel".getName in class MetalTheme
protected ColorUIResource getPrimary1()
getPrimary1 in class MetalTheme
protected ColorUIResource getPrimary2()
getPrimary2 in class MetalTheme
protected ColorUIResource getPrimary3()
getPrimary3 in class MetalTheme
protected ColorUIResource getSecondary1()
getSecondary1 in class MetalTheme
protected ColorUIResource getSecondary2()
getSecondary2 in class MetalTheme
protected ColorUIResource getSecondary3()
getSecondary3 in class MetalTheme
public FontUIResource getControlTextFont()
getControlTextFont in class MetalTheme
public FontUIResource getSystemTextFont()
getSystemTextFont in class MetalTheme
public FontUIResource getUserTextFont()
getUserTextFont in class MetalTheme
public FontUIResource getMenuTextFont()
getMenuTextFont in class MetalTheme
public FontUIResource getWindowTitleFont()
getWindowTitleFont in class MetalTheme
public FontUIResource getSubTextFont()
getSubTextFont in class MetalTheme
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/metal/DefaultMetalTheme.html