Uses of Interface
javax.swing.Icon
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Contains classes and interfaces used by the
JColorChooser
component.Contains classes and interfaces used by the
JFileChooser
component.Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree
.-
Uses of Icon in javax.swing
Modifier and TypeClassDescriptionclass
An implementation of the Icon interface that paints Icons from Images.Modifier and TypeFieldDescriptionprotected Icon
JInternalFrame.frameIcon
The icon shown in the top-left corner of this internal frame.protected Icon
JOptionPane.icon
Icon used in pane.Modifier and TypeMethodDescriptionAbstractButton.getDisabledIcon()
Returns the icon used by the button when it's disabled.JLabel.getDisabledIcon()
Returns the icon used by the label when it's disabled.LookAndFeel.getDisabledIcon
(JComponent component, Icon icon) Returns anIcon
with a disabled appearance.JTabbedPane.getDisabledIconAt
(int index) Returns the tab disabled icon atindex
.AbstractButton.getDisabledSelectedIcon()
Returns the icon used by the button when it's disabled and selected.LookAndFeel.getDisabledSelectedIcon
(JComponent component, Icon icon) Returns anIcon
for use by disabled components that are also selected.JInternalFrame.getFrameIcon()
Returns the image displayed in the title bar of this internal frame (usually in the top-left corner).AbstractButton.getIcon()
Returns the default icon.Returns the icon for this file or type of file, depending on the system.JLabel.getIcon()
Returns the graphic image (glyph, icon) that the label displays.JOptionPane.getIcon()
Returns the icon this pane displays.If the value ofkey
is anIcon
return it, otherwise returnnull
.If the value ofkey
for the givenLocale
is anIcon
return it, otherwise returnnull
.static Icon
Returns anIcon
from the defaults.static Icon
Returns anIcon
from the defaults that is appropriate for the given locale.JTabbedPane.getIconAt
(int index) Returns the tab icon atindex
.AbstractButton.getPressedIcon()
Returns the pressed icon for the button.AbstractButton.getRolloverIcon()
Returns the rollover icon for the button.AbstractButton.getRolloverSelectedIcon()
Returns the rollover selection icon for the button.AbstractButton.getSelectedIcon()
Returns the selected icon for the button.TransferHandler.getVisualRepresentation
(Transferable t) Returns an object that establishes the look of a transfer.Modifier and TypeMethodDescriptionvoid
Adds acomponent
represented by atitle
and/oricon
, either of which can benull
.void
Adds acomponent
andtip
represented by atitle
and/oricon
, either of which can benull
.static MatteBorder
BorderFactory.createMatteBorder
(int top, int left, int bottom, int right, Icon tileIcon) Creates a matte-look border that consists of multiple tiles of a specified icon.LookAndFeel.getDisabledIcon
(JComponent component, Icon icon) Returns anIcon
with a disabled appearance.LookAndFeel.getDisabledSelectedIcon
(JComponent component, Icon icon) Returns anIcon
for use by disabled components that are also selected.int
JTabbedPane.indexOfTab
(Icon icon) Returns the first tab index with a givenicon
, or -1 if no tab has this icon.protected void
Initialization of theAbstractButton
.protected void
Initializes the menu item with the specified text and icon.void
JTextPane.insertIcon
(Icon g) Inserts an icon into the document as a replacement for the currently selected content.void
Inserts a new tab for the given component, at the given index, represented by the given title and/or icon, either of which may benull
.static String
SwingUtilities.layoutCompoundLabel
(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.static String
SwingUtilities.layoutCompoundLabel
(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.void
AbstractButton.setDisabledIcon
(Icon disabledIcon) Sets the disabled icon for the button.void
JLabel.setDisabledIcon
(Icon disabledIcon) Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)).void
JTabbedPane.setDisabledIconAt
(int index, Icon disabledIcon) Sets the disabled icon atindex
toicon
which can benull
.void
AbstractButton.setDisabledSelectedIcon
(Icon disabledSelectedIcon) Sets the disabled selection icon for the button.void
JInternalFrame.setFrameIcon
(Icon icon) Sets an image to be displayed in the titlebar of this internal frame (usually in the top-left corner).void
Sets the button's default icon.void
Defines the icon this component will display.void
Sets the icon to display.void
Sets the icon atindex
toicon
which can benull
.void
AbstractButton.setPressedIcon
(Icon pressedIcon) Sets the pressed icon for the button.void
AbstractButton.setRolloverIcon
(Icon rolloverIcon) Sets the rollover icon for the button.void
AbstractButton.setRolloverSelectedIcon
(Icon rolloverSelectedIcon) Sets the rollover selected icon for the button.void
AbstractButton.setSelectedIcon
(Icon selectedIcon) Sets the selected icon for the button.static int
JOptionPane.showConfirmDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) Brings up a dialog with a specified icon, where the number of choices is determined by theoptionType
parameter.static Object
JOptionPane.showInputDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.static int
JOptionPane.showInternalConfirmDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) Brings up an internal dialog panel with a specified icon, where the number of choices is determined by theoptionType
parameter.static Object
JOptionPane.showInternalInputDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified.static void
JOptionPane.showInternalMessageDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon) Brings up an internal dialog panel displaying a message, specifying all parameters.static int
JOptionPane.showInternalOptionDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) Brings up an internal dialog panel with a specified icon, where the initial choice is determined by theinitialValue
parameter and the number of choices is determined by theoptionType
parameter.static void
JOptionPane.showMessageDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon) Brings up a dialog displaying a message, specifying all parameters.static int
JOptionPane.showOptionDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) Brings up a dialog with a specified icon, where the initial choice is determined by theinitialValue
parameter and the number of choices is determined by theoptionType
parameter.ModifierConstructorDescriptionAbstractAction
(String name, Icon icon) Creates anAction
with the specified name and small icon.Creates a button with initial text and an icon.Creates a button with an icon.Creates an initially unselected check box with the specified text and icon.Creates a check box with text and icon, and specifies whether or not it is initially selected.Creates an initially unselected check box with an icon.Creates a check box with an icon and specifies whether or not it is initially selected.JCheckBoxMenuItem
(String text, Icon icon) Creates an initially unselected check box menu item with the specified text and icon.JCheckBoxMenuItem
(String text, Icon icon, boolean b) Creates a check box menu item with the specified text, icon, and selection state.JCheckBoxMenuItem
(Icon icon) Creates an initially unselected check box menu item with an icon.Creates aJLabel
instance with the specified text, image, and horizontal alignment.Creates aJLabel
instance with the specified image.Creates aJLabel
instance with the specified image and horizontal alignment.Creates aJMenuItem
with the specified text and icon.Creates aJMenuItem
with the specified icon.JOptionPane
(Object message, int messageType, int optionType, Icon icon) Creates an instance ofJOptionPane
to display a message with the specified message type, options, and icon.JOptionPane
(Object message, int messageType, int optionType, Icon icon, Object[] options) Creates an instance ofJOptionPane
to display a message with the specified message type, icon, and options.JOptionPane
(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue) Creates an instance ofJOptionPane
to display a message with the specified message type, icon, and options, with the initially-selected option specified.JRadioButton
(String text, Icon icon) Creates a radio button that has the specified text and image, and that is initially unselected.JRadioButton
(String text, Icon icon, boolean selected) Creates a radio button that has the specified text, image, and selection state.JRadioButton
(Icon icon) Creates an initially unselected radio button with the specified image but no text.JRadioButton
(Icon icon, boolean selected) Creates a radio button with the specified image and selection state, but no text.JRadioButtonMenuItem
(String text, Icon icon) Creates a radio button menu item with the specified text andIcon
.JRadioButtonMenuItem
(String text, Icon icon, boolean selected) Creates a radio button menu item that has the specified text, image, and selection state.JRadioButtonMenuItem
(Icon icon) Creates aJRadioButtonMenuItem
with an icon.JRadioButtonMenuItem
(Icon icon, boolean selected) Creates a radio button menu item with the specified image and selection state, but no text.JToggleButton
(String text, Icon icon) Creates a toggle button that has the specified text and image, and that is initially unselected.JToggleButton
(String text, Icon icon, boolean selected) Creates a toggle button with the specified text, image, and selection state.JToggleButton
(Icon icon) Creates an initially unselected toggle button with the specified image but no text.JToggleButton
(Icon icon, boolean selected) Creates a toggle button with the specified image and selection state, but no text. -
Uses of Icon in javax.swing.border
Modifier and TypeFieldDescriptionprotected Icon
MatteBorder.tileIcon
The icon to be used for tiling the border.Modifier and TypeMethodDescriptionMatteBorder.getTileIcon()
Returns the icon used for tiling the border or null if a solid color is being used.ModifierConstructorDescriptionMatteBorder
(int top, int left, int bottom, int right, Icon tileIcon) Creates a matte border with the specified insets and tile icon.MatteBorder
(Insets borderInsets, Icon tileIcon) Creates a matte border with the specified insets and tile icon.MatteBorder
(Icon tileIcon) Creates a matte border with the specified tile icon. -
Uses of Icon in javax.swing.colorchooser
Modifier and TypeMethodDescriptionabstract Icon
AbstractColorChooserPanel.getLargeDisplayIcon()
Returns the large display icon for the panel.abstract Icon
AbstractColorChooserPanel.getSmallDisplayIcon()
Returns the small display icon for the panel. -
Uses of Icon in javax.swing.filechooser
Modifier and TypeMethodDescriptionThe icon that represents this file in theJFileChooser
.FileSystemView.getSystemIcon
(File f) Icon for a file, directory, or folder as it would be displayed in a system file browser.FileSystemView.getSystemIcon
(File f, int width, int height) Returns an icon for a file, directory, or folder as it would be displayed in a system file browser for the requested size. -
Uses of Icon in javax.swing.plaf
Modifier and TypeClassDescriptionclass
An Icon wrapper class which implements UIResource.ModifierConstructorDescriptionIconUIResource
(Icon delegate) Creates a UIResource icon object which wraps an existing Icon instance.MatteBorderUIResource
(int top, int left, int bottom, int right, Icon tileIcon) Constructs aMatteBorderUIResource
.MatteBorderUIResource
(Icon tileIcon) Constructs aMatteBorderUIResource
. -
Uses of Icon in javax.swing.plaf.basic
Modifier and TypeFieldDescriptionprotected Icon
BasicMenuItemUI.arrowIcon
The arrow icon.protected Icon
BasicMenuItemUI.checkIcon
The check icon.protected Icon
BasicInternalFrameTitlePane.closeIcon
The close icon.protected Icon
BasicTreeUI.collapsedIcon
The collapsed icon.protected Icon
BasicFileChooserUI.computerIcon
Computer iconprotected Icon
BasicFileChooserUI.detailsViewIcon
Details view iconprotected Icon
BasicFileChooserUI.directoryIcon
Directory iconprotected Icon
BasicTreeUI.expandedIcon
The expanded icon.protected Icon
BasicFileChooserUI.fileIcon
File iconprotected Icon
BasicFileChooserUI.floppyDriveIcon
Floppy drive iconprotected Icon
BasicFileChooserUI.hardDriveIcon
Hard drive iconprotected Icon
BasicFileChooserUI.homeFolderIcon
Home folder iconprotected Icon
BasicRadioButtonUI.icon
The icon.protected Icon
BasicInternalFrameTitlePane.iconIcon
The iconify icon.protected Icon
BasicFileChooserUI.listViewIcon
List view iconprotected Icon
BasicInternalFrameTitlePane.maxIcon
The maximize icon.protected Icon
BasicInternalFrameTitlePane.minIcon
The minimize icon.protected Icon
BasicFileChooserUI.newFolderIcon
New folder iconprotected Icon
BasicFileChooserUI.upFolderIcon
Up folder iconprotected Icon
BasicFileChooserUI.viewMenuIcon
View menu iconModifier and TypeMethodDescriptionstatic Icon
BasicIconFactory.createEmptyFrameIcon()
Returns an empty frame icon.BasicFileChooserUI.BasicFileView.getCachedIcon
(File f) Returns the cached icon for the file.static Icon
BasicIconFactory.getCheckBoxIcon()
Returns a check box icon.static Icon
BasicIconFactory.getCheckBoxMenuItemIcon()
Returns a check box menu item icon.BasicTreeUI.getCollapsedIcon()
Returns the collapsed icon.BasicRadioButtonUI.getDefaultIcon()
Returns the default icon.BasicTreeUI.getExpandedIcon()
Returns the expanded icon.protected Icon
BasicOptionPaneUI.getIcon()
Returns the icon from theJOptionPane
the receiver is providing the look and feel for, or the default icon as returned fromgetDefaultIcon
.protected Icon
BasicTabbedPaneUI.getIconForTab
(int tabIndex) Returns the icon for a tab.protected Icon
BasicOptionPaneUI.getIconForType
(int messageType) Returns the icon to use for the passed in type.static Icon
BasicIconFactory.getMenuArrowIcon()
Returns a menu arrow icon.static Icon
BasicIconFactory.getMenuItemArrowIcon()
Returns a menu item arrow icon.static Icon
BasicIconFactory.getMenuItemCheckIcon()
Returns a menu item check icon.static Icon
BasicIconFactory.getRadioButtonIcon()
Returns a radio button icon.static Icon
BasicIconFactory.getRadioButtonMenuItemIcon()
Returns a radio button menu item icon.Modifier and TypeMethodDescriptionvoid
Caches an icon for a file.protected void
BasicTreeUI.drawCentered
(Component c, Graphics graphics, Icon icon, int x, int y) Draws theicon
centered at (x,y).protected Dimension
BasicMenuItemUI.getPreferredMenuItemSize
(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) Returns the preferred size of a menu item.protected String
BasicLabelUI.layoutCL
(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) Forwards the call to SwingUtilities.layoutCompoundLabel().protected void
BasicTabbedPaneUI.layoutLabel
(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) Laysout a label.protected void
BasicTabbedPaneUI.paintIcon
(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) Paints an icon.protected void
BasicMenuItemUI.paintMenuItem
(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) Paints a menu item.void
BasicTreeUI.setCollapsedIcon
(Icon newG) Sets the collapsed icon.void
BasicTreeUI.setExpandedIcon
(Icon newG) Sets the expanded icon. -
Uses of Icon in javax.swing.plaf.metal
Modifier and TypeClassDescriptionclass
CheckboxIcon implementation for OrganicCheckBoxUIclass
This utility class draws the horizontal bars which indicate a MetalComboBoxstatic class
Warning: Serialized objects of this class will not be compatible with future Swing releases.static class
Warning: Serialized objects of this class will not be compatible with future Swing releases.static class
Defines an icon for Palette closestatic class
Warning: Serialized objects of this class will not be compatible with future Swing releases.static class
Warning: Serialized objects of this class will not be compatible with future Swing releases.static class
The class represents a tree leaf icon.Modifier and TypeFieldDescriptionprotected Icon
MetalComboBoxButton.comboIcon
The icon.protected static Icon
MetalSliderUI.horizThumbIcon
A default horizontal thumbIcon
.protected Icon
MetalInternalFrameTitlePane.paletteCloseIcon
The palette close icon.protected static Icon
MetalSliderUI.vertThumbIcon
A default vertical thumbIcon
.Modifier and TypeMethodDescriptionstatic Icon
MetalIconFactory.getCheckBoxIcon()
Returns a checkbox icon.static Icon
MetalIconFactory.getCheckBoxMenuItemIcon()
Returns an icon to be used byJCheckBoxMenuItem
.final Icon
MetalComboBoxButton.getComboIcon()
Returns the icon of theJComboBox
.MetalLookAndFeel.getDisabledIcon
(JComponent component, Icon icon) Returns anIcon
with a disabled appearance.MetalLookAndFeel.getDisabledSelectedIcon
(JComponent component, Icon icon) Returns anIcon
for use by disabled components that are also selected.static Icon
MetalIconFactory.getFileChooserDetailViewIcon()
Returns the instance ofFileChooserDetailViewIcon
.static Icon
MetalIconFactory.getFileChooserHomeFolderIcon()
Returns the instance ofFileChooserHomeFolderIcon
.static Icon
MetalIconFactory.getFileChooserListViewIcon()
Returns the instance ofFileChooserListViewIcon
.static Icon
MetalIconFactory.getFileChooserNewFolderIcon()
Returns the instance ofFileChooserNewFolderIcon
.static Icon
MetalIconFactory.getFileChooserUpFolderIcon()
Returns the instance ofFileChooserUpFolderIcon
.static Icon
MetalIconFactory.getHorizontalSliderThumbIcon()
Returns a thumb icon to be used by horizontal slider.static Icon
MetalIconFactory.getInternalFrameAltMaximizeIcon
(int size) Constructs a new instance ofInternalFrameAltMaximizeIcon
.static Icon
MetalIconFactory.getInternalFrameCloseIcon
(int size) Constructs a new instance ofInternalFrameCloseIcon
.static Icon
MetalIconFactory.getInternalFrameDefaultMenuIcon()
Returns the instance ofInternalFrameDefaultMenuIcon
.static Icon
MetalIconFactory.getInternalFrameMaximizeIcon
(int size) Constructs a new instance ofInternalFrameMaximizeIcon
.static Icon
MetalIconFactory.getInternalFrameMinimizeIcon
(int size) Constructs a new instance ofInternalFrameMinimizeIcon
.static Icon
MetalIconFactory.getMenuArrowIcon()
Returns an icon to be used byJMenu
.static Icon
MetalIconFactory.getMenuItemArrowIcon()
Returns an icon to be used byJMenuItem
.static Icon
MetalIconFactory.getMenuItemCheckIcon()
Returns an icon to be used byJCheckBoxMenuItem
.static Icon
MetalIconFactory.getRadioButtonIcon()
Returns the instance ofRadioButtonIcon
.static Icon
MetalIconFactory.getRadioButtonMenuItemIcon()
Returns an icon to be used byJRadioButtonMenuItem
.static Icon
MetalIconFactory.getTreeComputerIcon()
Returns the instance ofTreeComputerIcon
.static Icon
MetalIconFactory.getTreeControlIcon
(boolean isCollapsed) Constructs a new instance ofTreeControlIcon
.static Icon
MetalIconFactory.getTreeFloppyDriveIcon()
Returns the instance ofTreeFloppyDriveIcon
.static Icon
MetalIconFactory.getTreeFolderIcon()
Constructs a new instance ofTreeFolderIcon
.static Icon
MetalIconFactory.getTreeHardDriveIcon()
Returns the instance ofTreeHardDriveIcon
.static Icon
MetalIconFactory.getTreeLeafIcon()
Constructs a new instance ofTreeLeafIcon
.static Icon
MetalIconFactory.getVerticalSliderThumbIcon()
Returns a thumb icon to be used by vertical slider.Modifier and TypeMethodDescriptionMetalLookAndFeel.getDisabledIcon
(JComponent component, Icon icon) Returns anIcon
with a disabled appearance.MetalLookAndFeel.getDisabledSelectedIcon
(JComponent component, Icon icon) Returns anIcon
for use by disabled components that are also selected.final void
MetalComboBoxButton.setComboIcon
(Icon i) Sets the icon of theJComboBox
.ModifierConstructorDescriptionMetalComboBoxButton
(JComboBox<Object> cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList<Object> list) Constructs a new instance ofMetalComboBoxButton
.MetalComboBoxButton
(JComboBox<Object> cb, Icon i, CellRendererPane pane, JList<Object> list) Constructs a new instance ofMetalComboBoxButton
. -
Uses of Icon in javax.swing.plaf.synth
Modifier and TypeMethodDescriptionprotected Icon
SynthButtonUI.getDefaultIcon
(AbstractButton b) Returns the default icon.protected Icon
SynthButtonUI.getIcon
(AbstractButton b) Returns the Icon to use for painting the button.SynthStyle.getIcon
(SynthContext context, Object key) Convenience method to get a specific style property whose value is an Icon.protected Icon
SynthButtonUI.getSizingIcon
(AbstractButton b) Returns the Icon used in calculating the preferred/minimum/maximum size.protected Icon
SynthRadioButtonUI.getSizingIcon
(AbstractButton b) Returns the Icon used in calculating the preferred/minimum/maximum size.Modifier and TypeMethodDescriptionstatic int
SynthGraphicsUtils.getIconHeight
(Icon icon, SynthContext context) Returns the icon's height.static int
SynthGraphicsUtils.getIconWidth
(Icon icon, SynthContext context) Returns the icon's width.SynthGraphicsUtils.getMaximumSize
(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) Returns the maximum size needed to properly render an icon and text.SynthGraphicsUtils.getMinimumSize
(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) Returns the minimum size needed to properly render an icon and text.SynthGraphicsUtils.getPreferredSize
(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) Returns the preferred size needed to properly render an icon and text.SynthGraphicsUtils.layoutText
(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap) Lays out text and an icon returning, by reference, the location to place the icon and text.static void
SynthGraphicsUtils.paintIcon
(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height) Paints the icon.void
SynthGraphicsUtils.paintText
(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset) Paints an icon and text. -
Uses of Icon in javax.swing.text
Modifier and TypeMethodDescriptionstatic Icon
StyleConstants.getIcon
(AttributeSet a) Gets the icon setting from the attribute list.Modifier and TypeMethodDescriptionstatic void
StyleConstants.setIcon
(MutableAttributeSet a, Icon c) Sets the icon attribute. -
Uses of Icon in javax.swing.text.html
Modifier and TypeMethodDescriptionImageView.getLoadingImageIcon()
Returns the icon to use while in the process of loading the image.ImageView.getNoImageIcon()
Returns the icon to use if the image could not be found. -
Uses of Icon in javax.swing.tree
Modifier and TypeFieldDescriptionprotected Icon
DefaultTreeCellRenderer.closedIcon
Icon used to show non-leaf nodes that aren't expanded.protected Icon
DefaultTreeCellEditor.editingIcon
Icon to use when editing.protected Icon
DefaultTreeCellRenderer.leafIcon
Icon used to show leaf nodes.protected Icon
DefaultTreeCellRenderer.openIcon
Icon used to show non-leaf nodes that are expanded.Modifier and TypeMethodDescriptionDefaultTreeCellRenderer.getClosedIcon()
Returns the icon used to represent non-leaf nodes that are not expanded.DefaultTreeCellRenderer.getDefaultClosedIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded.DefaultTreeCellRenderer.getDefaultLeafIcon()
Returns the default icon, for the current laf, that is used to represent leaf nodes.DefaultTreeCellRenderer.getDefaultOpenIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded.DefaultTreeCellRenderer.getLeafIcon()
Returns the icon used to represent leaf nodes.DefaultTreeCellRenderer.getOpenIcon()
Returns the icon used to represent non-leaf nodes that are expanded.Modifier and TypeMethodDescriptionvoid
DefaultTreeCellRenderer.setClosedIcon
(Icon newIcon) Sets the icon used to represent non-leaf nodes that are not expanded.void
DefaultTreeCellRenderer.setLeafIcon
(Icon newIcon) Sets the icon used to represent leaf nodes.void
DefaultTreeCellRenderer.setOpenIcon
(Icon newIcon) Sets the icon used to represent non-leaf nodes that are expanded.