Serializablepublic class MetalIconFactory extends Object implements Serializable
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.
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | MetalIconFactory.FileIcon16 |  Warning: Serialized objects of this class will not be compatible with future Swing releases. | 
| static class  | MetalIconFactory.FolderIcon16 |  Warning: Serialized objects of this class will not be compatible with future Swing releases. | 
| static class  | MetalIconFactory.PaletteCloseIcon | Defines an icon for Palette close | 
| static class  | MetalIconFactory.TreeControlIcon |  Warning: Serialized objects of this class will not be compatible with future Swing releases. | 
| static class  | MetalIconFactory.TreeFolderIcon |  Warning: Serialized objects of this class will not be compatible with future Swing releases. | 
| static class  | MetalIconFactory.TreeLeafIcon | The class represents a tree leaf icon. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static final boolean | DARK | DARKis used for the propertyTree.expandedIcon. | 
| static final boolean | LIGHT | LIGHTis used for the propertyTree.collapsedIcon. | 
| Constructor | Description | 
|---|---|
| MetalIconFactory() | Constructs a  MetalIconFactory. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static Icon | getCheckBoxIcon() | Returns a checkbox icon. | 
| static Icon | getCheckBoxMenuItemIcon() | Returns an icon to be used by  JCheckBoxMenuItem. | 
| static Icon | getFileChooserDetailViewIcon() | Returns the instance of  FileChooserDetailViewIcon. | 
| static Icon | getFileChooserHomeFolderIcon() | Returns the instance of  FileChooserHomeFolderIcon. | 
| static Icon | getFileChooserListViewIcon() | Returns the instance of  FileChooserListViewIcon. | 
| static Icon | getFileChooserNewFolderIcon() | Returns the instance of  FileChooserNewFolderIcon. | 
| static Icon | getFileChooserUpFolderIcon() | Returns the instance of  FileChooserUpFolderIcon. | 
| static Icon | getHorizontalSliderThumbIcon() | Returns a thumb icon to be used by horizontal slider. | 
| static Icon | getInternalFrameAltMaximizeIcon | Constructs a new instance of  InternalFrameAltMaximizeIcon. | 
| static Icon | getInternalFrameCloseIcon | Constructs a new instance of  InternalFrameCloseIcon. | 
| static Icon | getInternalFrameDefaultMenuIcon() | Returns the instance of  InternalFrameDefaultMenuIcon. | 
| static Icon | getInternalFrameMaximizeIcon | Constructs a new instance of  InternalFrameMaximizeIcon. | 
| static Icon | getInternalFrameMinimizeIcon | Constructs a new instance of  InternalFrameMinimizeIcon. | 
| static Icon | getMenuArrowIcon() | Returns an icon to be used by  JMenu. | 
| static Icon | getMenuItemArrowIcon() | Returns an icon to be used by  JMenuItem. | 
| static Icon | getMenuItemCheckIcon() | Returns an icon to be used by  JCheckBoxMenuItem. | 
| static Icon | getRadioButtonIcon() | Returns the instance of  RadioButtonIcon. | 
| static Icon | getRadioButtonMenuItemIcon() | Returns an icon to be used by  JRadioButtonMenuItem. | 
| static Icon | getTreeComputerIcon() | Returns the instance of  TreeComputerIcon. | 
| static Icon | getTreeControlIcon | Constructs a new instance of  TreeControlIcon. | 
| static Icon | getTreeFloppyDriveIcon() | Returns the instance of  TreeFloppyDriveIcon. | 
| static Icon | getTreeFolderIcon() | Constructs a new instance of  TreeFolderIcon. | 
| static Icon | getTreeHardDriveIcon() | Returns the instance of  TreeHardDriveIcon. | 
| static Icon | getTreeLeafIcon() | Constructs a new instance of  TreeLeafIcon. | 
| static Icon | getVerticalSliderThumbIcon() | Returns a thumb icon to be used by vertical slider. | 
public static final boolean DARK
DARK is used for the property Tree.expandedIcon.public static final boolean LIGHT
LIGHT is used for the property Tree.collapsedIcon.public MetalIconFactory()
MetalIconFactory.public static Icon getFileChooserDetailViewIcon()
FileChooserDetailViewIcon.FileChooserDetailViewIcon
public static Icon getFileChooserHomeFolderIcon()
FileChooserHomeFolderIcon.FileChooserHomeFolderIcon
public static Icon getFileChooserListViewIcon()
FileChooserListViewIcon.FileChooserListViewIcon
public static Icon getFileChooserNewFolderIcon()
FileChooserNewFolderIcon.FileChooserNewFolderIcon
public static Icon getFileChooserUpFolderIcon()
FileChooserUpFolderIcon.FileChooserUpFolderIcon
public static Icon getInternalFrameAltMaximizeIcon(int size)
InternalFrameAltMaximizeIcon.size - the size of the iconInternalFrameAltMaximizeIcon
public static Icon getInternalFrameCloseIcon(int size)
InternalFrameCloseIcon.size - the size of the iconInternalFrameCloseIcon
public static Icon getInternalFrameDefaultMenuIcon()
InternalFrameDefaultMenuIcon.InternalFrameDefaultMenuIcon
public static Icon getInternalFrameMaximizeIcon(int size)
InternalFrameMaximizeIcon.size - the size of the iconInternalFrameMaximizeIcon
public static Icon getInternalFrameMinimizeIcon(int size)
InternalFrameMinimizeIcon.size - the size of the iconInternalFrameMinimizeIcon
public static Icon getRadioButtonIcon()
RadioButtonIcon.RadioButtonIcon
public static Icon getCheckBoxIcon()
public static Icon getTreeComputerIcon()
TreeComputerIcon.TreeComputerIcon
public static Icon getTreeFloppyDriveIcon()
TreeFloppyDriveIcon.TreeFloppyDriveIcon
public static Icon getTreeFolderIcon()
TreeFolderIcon.TreeFolderIcon
public static Icon getTreeHardDriveIcon()
TreeHardDriveIcon.TreeHardDriveIcon
public static Icon getTreeLeafIcon()
TreeLeafIcon.TreeLeafIcon
public static Icon getTreeControlIcon(boolean isCollapsed)
TreeControlIcon.isCollapsed - if true the icon is collapsedTreeControlIcon
public static Icon getMenuArrowIcon()
JMenu.JMenu
public static Icon getMenuItemCheckIcon()
JCheckBoxMenuItem.null if no default existspublic static Icon getMenuItemArrowIcon()
JMenuItem.JMenuItem
public static Icon getCheckBoxMenuItemIcon()
JCheckBoxMenuItem.JCheckBoxMenuItem
public static Icon getRadioButtonMenuItemIcon()
JRadioButtonMenuItem.JRadioButtonMenuItem
public static Icon getHorizontalSliderThumbIcon()
public static Icon getVerticalSliderThumbIcon()
    © 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/MetalIconFactory.html