Module java.desktop

Class MetalIconFactory

java.lang.Object
javax.swing.plaf.metal.MetalIconFactory
All Implemented Interfaces:
Serializable

public class MetalIconFactory extends Object implements Serializable
Factory object that vends Icons for the Java look and feel (Metal). These icons are used extensively in Metal via the defaults mechanism. While other look and feels often use GIFs for icons, creating icons in code facilitates switching to other themes.

Each method in this class returns either an Icon or null, where null implies that there is no default icon.

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.