A concrete implementation of
providing the original look of the Java Look and Feel, code-named "Steel". Refer to
for details on changing the default theme.
All colors returned by
DefaultMetalTheme are completely opaque.
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:
- Set the system property
false. For example,
java -Dswing.boldMetal=false MyApp.
- Set the defaults property
Boolean.FALSE. For example:
The defaults property
, if set, takes precedence over the system property of the same name. After setting this defaults property you need to re-install
, 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
// re-install the Metal Look and Feel
// Update the ComponentUIs for all Components. This
// needs to be invoked for all windows.
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