public class MetalIconFactory extends Object implements Serializable
Icon
s 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 and 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 |
Modifier and Type | Field and Description |
---|---|
static boolean |
DARK |
static boolean |
LIGHT |
Constructor and Description |
---|
MetalIconFactory() |
public static final boolean DARK
public static final boolean LIGHT
public static Icon getFileChooserDetailViewIcon()
public static Icon getFileChooserHomeFolderIcon()
public static Icon getFileChooserListViewIcon()
public static Icon getFileChooserNewFolderIcon()
public static Icon getFileChooserUpFolderIcon()
public static Icon getInternalFrameAltMaximizeIcon(int size)
public static Icon getInternalFrameCloseIcon(int size)
public static Icon getInternalFrameDefaultMenuIcon()
public static Icon getInternalFrameMaximizeIcon(int size)
public static Icon getInternalFrameMinimizeIcon(int size)
public static Icon getRadioButtonIcon()
public static Icon getCheckBoxIcon()
public static Icon getTreeComputerIcon()
public static Icon getTreeFloppyDriveIcon()
public static Icon getTreeFolderIcon()
public static Icon getTreeHardDriveIcon()
public static Icon getTreeLeafIcon()
public static Icon getTreeControlIcon(boolean isCollapsed)
public static Icon getMenuArrowIcon()
public static Icon getMenuItemCheckIcon()
JCheckBoxMenuItem
.null
if no default existspublic static Icon getMenuItemArrowIcon()
public static Icon getCheckBoxMenuItemIcon()
public static Icon getRadioButtonMenuItemIcon()
public static Icon getHorizontalSliderThumbIcon()
public static Icon getVerticalSliderThumbIcon()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.