JavaTM 2 Platform
Standard Ed. 5.0

Class DefaultMetalTheme

  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
Direct Known Subclasses:

public class DefaultMetalTheme
extends MetalTheme

This class describes the default Metal Theme.

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 JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.

Constructor Summary
Method Summary
 FontUIResource getControlTextFont()
 FontUIResource getMenuTextFont()
 String getName()
protected  ColorUIResource getPrimary1()
protected  ColorUIResource getPrimary2()
protected  ColorUIResource getPrimary3()
protected  ColorUIResource getSecondary1()
protected  ColorUIResource getSecondary2()
protected  ColorUIResource getSecondary3()
 FontUIResource getSubTextFont()
 FontUIResource getSystemTextFont()
 FontUIResource getUserTextFont()
 FontUIResource getWindowTitleFont()
Methods inherited from class javax.swing.plaf.metal.MetalTheme
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DefaultMetalTheme()
Method Detail


public String getName()
Specified by:
getName in class MetalTheme


protected ColorUIResource getPrimary1()
Specified by:
getPrimary1 in class MetalTheme


protected ColorUIResource getPrimary2()
Specified by:
getPrimary2 in class MetalTheme


protected ColorUIResource getPrimary3()
Specified by:
getPrimary3 in class MetalTheme


protected ColorUIResource getSecondary1()
Specified by:
getSecondary1 in class MetalTheme


protected ColorUIResource getSecondary2()
Specified by:
getSecondary2 in class MetalTheme


protected ColorUIResource getSecondary3()
Specified by:
getSecondary3 in class MetalTheme


public FontUIResource getControlTextFont()
Specified by:
getControlTextFont in class MetalTheme


public FontUIResource getSystemTextFont()
Specified by:
getSystemTextFont in class MetalTheme


public FontUIResource getUserTextFont()
Specified by:
getUserTextFont in class MetalTheme


public FontUIResource getMenuTextFont()
Specified by:
getMenuTextFont in class MetalTheme


public FontUIResource getWindowTitleFont()
Specified by:
getWindowTitleFont in class MetalTheme


public FontUIResource getSubTextFont()
Specified by:
getSubTextFont in class MetalTheme

JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.