Uses of Interface javax.swing.Icon

Uses in package javax.swing

Classes implementing javax.swing.Icon

class
An Icon implementation that is backed by an Image.

Constructors with parameter type javax.swing.Icon

Creates a new action with the specified name and icon.
JButton.JButton(String text, Icon icon)
Constructs an unselected toggle button with the supplied text and icon.
JCheckBox.JCheckBox(String text, Icon icon, boolean selected)
Constructs a toggle button with the supplied text, icon and state.
Constructs an unselected toggle button with the supplied icon and no text.
JCheckBox.JCheckBox(Icon icon, boolean selected)
Constructs a toggle button with the supplied icon and state.
Creates a new JCheckBoxMenuItem object with given label and icon
JCheckBoxMenuItem.JCheckBoxMenuItem(String text, Icon icon, boolean state)
Creates a new JCheckBoxMenuItem object with given label, icon, and marked as checked if given 'state' is true.
Creates a new JCheckBoxMenuItem with given icon
JLabel.JLabel(String text, Icon icon, int horizontalAlignment)
Creates a new vertically centered JLabel object with the given text, icon, and horizontal alignment.
Creates a new vertically and horizontally centered JLabel object with no text and the given icon.
JLabel.JLabel(Icon image, int horizontalAlignment)
Creates a new vertically centered JLabel object with no text and the given icon and horizontal alignment.
Creates a new JMenuItem with specified text and icon.
Creates a new JMenuItem with the given icon.
JOptionPane.JOptionPane(Object message, int messageType, int optionType, Icon icon)
Creates a new JOptionPane object using the given message, messageType, optionType and icon.
JOptionPane.JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options)
Creates a new JOptionPane object using the given message, messageType, optionType, icon and options.
JOptionPane.JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)
Creates a new JOptionPane object using the given message, messageType, optionType, icon, options and initialValue.
Constructs an unselected radio button with the supplied text and icon.
JRadioButton.JRadioButton(String text, Icon icon, boolean selected)
Constructs a radio button with the supplied text, icon and state.
Constructs an unselected radio button with the supplied icon and no text.
JRadioButton.JRadioButton(Icon icon, boolean selected)
Constructs a radio button with the supplied icon and state.
Creates a new JRadioButtonMenuItem with specified label and icon
JRadioButtonMenuItem.JRadioButtonMenuItem(String text, Icon icon, boolean selected)
Creates a new JRadioButtonMenuItem with specified label, icon and selected state.
Creates a new JRadioButtonMenuItem with specified icon
Creates a new JRadioButtonMenuItem with specified icon and given selected state
Constructs an unselected toggle button with the supplied text and icon.
JToggleButton.JToggleButton(String text, Icon icon, boolean selected)
Constructs a toggle button with the supplied text, icon and state.
Constructs an unselected toggle button with the supplied icon and no text.
JToggleButton.JToggleButton(Icon icon, boolean selected)
Constructs a toggle button with the supplied icon and state.

Fields of type javax.swing.Icon

Icon
The icon used in the JMenuBar in the TitlePane.
Icon
The icon displayed in the dialog/internal frame.

Methods with parameter type javax.swing.Icon

void
JTabbedPane.addTab(String title, Icon icon, Component component)
This method adds a tab to the JTabbedPane.
void
JTabbedPane.addTab(String title, Icon icon, Component component, String tip)
This method adds a tab to the JTabbedPane.
MatteBorder
BorderFactory.createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
Create a matte-look border that consists of multiple tiles of a specified icon.
int
This method finds the index of a tab given the icon.
void
void
JMenuItem.init(String text, Icon icon)
Initializes this menu item
void
Inserts an Icon into the text at the current caret position.
void
JTabbedPane.insertTab(String title, Icon icon, Component component, String tip, int index)
This method inserts tabs into JTabbedPane.
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)
Layout a "compound label" consisting of a text string and an icon which is to be placed near the rendered text.
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)
Layout a "compound label" consisting of a text string and an icon which is to be placed near the rendered text.
void
Set the button's "disabledIcon" property.
void
This method changes the "disabledIcon" property.
void
JTabbedPane.setDisabledIconAt(int index, Icon disabledIcon)
This method sets the disabled icon of the tab.
void
Set the button's disabled selected icon.
void
This method sets the Icon to be used in two places.
void
Set the button's default "icon" property.
void
JLabel.setIcon(Icon newIcon)
This method changes the "icon" property.
void
This method changes the icon property.
void
JTabbedPane.setIconAt(int index, Icon icon)
This method sets the icon of the tab.
void
Set the button's "pressedIcon" property.
void
Set the button's rollover icon.
void
Set the button's rollover selected icon.
void
Set the button's selected icon.
int
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
This method shows a confirmation dialog with the given message, title, optionType, messageType and icon.
Object
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
This method shows an input dialog with the given message, title, messageType, icon, selectionValues, and initialSelectionValue.
int
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
This method shows an internal confirmation dialog with the given message, title, option type, message type, and icon.
Object
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
This method shows an internal input dialog with the given message, title message type, icon, selection value list and initial selection value.
void
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
This method shows an internal message dialog with the given message, title, message type and icon.
int
JOptionPane.showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
This method displays an internal option dialog with the given message, title, option type, message type, icon, option list, and initial option value.
void
JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
This method shows a message dialog with the given message, title, messageType and icon.
int
JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
This method shows an option dialog with the given message, title, optionType, messageType, icon, options and initialValue.

Methods with return type javax.swing.Icon

Icon
Return the button's "disabledIcon" property.
Icon
This method returns the disabled icon.
Icon
This method returns the disabled icon given the index.
Icon
Return the button's disabled selected icon.
Icon
This method returns the Frame Icon (the icon used in the JInternalFrame TitlePane and iconified frame).
Icon
Return the button's default "icon" property.
Icon
This method returns the active icon.
Icon
This method returns the icon displayed.
Icon
Returns the icon provided by the current (or default) FileView.
Icon
Returns an icon entry for the default locale.
Icon
Returns an Icon from the defaults table.
Icon
Returns an icon entry for a specic locale.
Icon
Returns an Icon from the defaults table.
Icon
This method returns the active icon given the index.
Icon
Return the button's "pressedIcon" property.
Icon
Return the button's rollover icon.
Icon
Return the button's rollover selected icon.
Icon
Return the button's selected icon.
Icon

Uses in package javax.swing.plaf

Classes implementing javax.swing.Icon

class
An icon that is marked as UIResource, which indicates that it has been installed by a pluggable LookAndFeel.

Constructors with parameter type javax.swing.Icon

Constructs a IconUIResource that wraps another icon.
BorderUIResource.MatteBorderUIResource.MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon)
Constructs a MatteBorderUIResource given the width on each side and an icon for tiling the border area.
Constructs a MatteBorderUIResource given an icon for tiling the border area.

Uses in package javax.swing.filechooser

Methods with return type javax.swing.Icon

Icon
Returns an Icon to represent the specified file.
Icon
Returns the icon that would be displayed for the given file by the underlying system.

Uses in package javax.swing.plaf.basic

Fields of type javax.swing.Icon

Icon
Icon that is displayed after the text to indicated that this menu contains submenu.
Icon
Icon that is displayed before the text.
Icon
The icon displayed in the close button.
Icon
Collapse Icon for the tree.
Icon
An icon representing a computer.
Icon
An icon for the "details view" button.
Icon
An icon representing a directory.
Icon
Expanded Icon for the tree.
Icon
An icon representing a file.
Icon
An icon representing a floppy drive.
Icon
An icon representing a hard drive.
Icon
An icon representing the user's home folder.
Icon
The default icon for JRadioButtons.
Icon
The icon displayed in the iconify button.
Icon
An icon for the "list view" button.
Icon
The icon displayed in the maximize button.
Icon
The icon displayed in the restore button.
Icon
An icon for the "new folder" button.
Icon
An icon for the "up folder" button.

Methods with parameter type javax.swing.Icon

void
Adds an icon to the cache, associating it with the given file/directory.
void
BasicTreeUI.drawCentered(Component c, Graphics g, Icon icon, int x, int y)
Draws an icon at around a specific position
Dimension
BasicMenuItemUI.getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
Returns preferred size for the given menu item.
String
BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
This method is simply calls SwingUtilities's layoutCompoundLabel.
void
BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
This method lays out the tab and finds the location to paint the icon and text.
void
BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
This method paints the icon.
void
BasicMenuItemUI.paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
Paints specified menu item
void
Sets the collapsed icon.
void
Sets the expanded icon.

Methods with return type javax.swing.Icon

Icon
Icon
Retrieves the icon associated with the specified file/directory, if there is one.
Icon
Returns an icon for CheckBoxes in the BasicLookAndFeel.
Icon
Creates and returns an icon used when rendering JCheckBoxMenuItem components.
Icon
Returns the current collapsed icon.
Icon
Icon
Returns the default icon for JRadioButtons.
Icon
Returns the current expanded icon.
Icon
This method will return the icon the user has set or the icon that will be used based on message type.
Icon
Returns an icon appropriate for the given file or directory.
Icon
This method returns an icon for the tab.
Icon
This method returns the icon for the given messageType.
Icon
Returns a new instance of a 4 x 8 icon showing a small black triangle that points to the right.
Icon
Icon
Icon
Returns an icon for RadioButtons in the BasicLookAndFeel.
Icon

Uses in package javax.swing.plaf.metal

Classes implementing javax.swing.Icon

class
An Icon used by the MetalCheckBoxUI class.
class
An icon used by the MetalComboBoxUI class.
class
An icon representing a file (drawn as a piece of paper with the top-right corner turned down).
class
An icon representing a folder.
class
An icon used by the MetalInternalFrameUI class when the frame is displayed as a palette.
class
A tree control icon.
class
A tree folder icon.
class
A tree leaf icon.

Constructors with parameter type javax.swing.Icon

Creates a new button.
Creates a new button.

Fields of type javax.swing.Icon

Icon
The button icon.
Icon
The icon used for the thumb control of horizontally oriented sliders.
Icon
The icon used for the close button - this is fetched from the look and feel defaults using the key InternalFrame.paletteCloseIcon.
Icon
The icon used for the thumb control of vertically oriented sliders.

Methods with parameter type javax.swing.Icon

void
Sets the icon displayed by the button.

Methods with return type javax.swing.Icon

Icon
Returns an icon for use when rendering the JCheckBox component.
Icon
Returns an icon for use when rendering the JCheckBoxMenuItem component.
Icon
Returns the icon displayed by the button.
Icon
Returns an icon for use by the JFileChooser component.
Icon
Returns an icon for use by the JFileChooser component.
Icon
Returns an icon for use by the JFileChooser component.
Icon
Returns an icon for use by the JFileChooser component.
Icon
Returns an icon for use by the JFileChooser component.
Icon
Returns the icon used to display the thumb for a horizontally oriented JSlider.
Icon
Creates a new icon for the 'restore' button in a JInternalFrame that has been maximised.
Icon
Creates a new icon used to represent the 'close' button in the title pane of a JInternalFrame.
Icon
Creates a new icon for the menu in a JInternalFrame.
Icon
Creates a new icon for the 'maximize' button in a JInternalFrame.
Icon
Returns the icon used for the minimize button in the frame title for a JInternalFrame.
Icon
Returns a new instance of a 4 x 8 icon showing a small black triangle that points to the right.
Icon
Returns a new instance of a 4 x 8 icon showing a small black triangle that points to the right.
Icon
Returns a new instance of a 13 x 13 icon showing a small black check mark.
Icon
Returns an icon for RadioButtons in the Metal L&F.
Icon
Creates a new instance of the icon used in a JRadioButtonMenuItem.
Icon
Returns a 16x16 icon representing a computer.
Icon
MetalIconFactory.getTreeControlIcon(boolean isCollapsed)
Creates and returns a tree control icon.
Icon
Returns a 16x16 icon representing a floppy disk.
Icon
Creates and returns a new tree folder icon.
Icon
Returns a 16x16 icon representing a hard disk.
Icon
Creates and returns a new tree leaf icon.
Icon
Returns the icon used to display the thumb for a vertically oriented JSlider.

Uses in package javax.swing.colorchooser

Methods with return type javax.swing.Icon

Icon
This method sets the large icon useed in the jTabbedPane for this chooser panel.
Icon
This method sets the small icon used in the JTabbedPane for this chooser panel.

Uses in package javax.swing.text

Methods with parameter type javax.swing.Icon

void

Methods with return type javax.swing.Icon

Icon

Uses in package javax.swing.tree

Fields of type javax.swing.Icon

Icon
closedIcon
Icon
Icon to use when editing.
Icon
leafIcon
Icon
openIcon

Methods with parameter type javax.swing.Icon

void
setClosedIcon
void
setLeafIcon
void
setOpenIcon

Methods with return type javax.swing.Icon

Icon
getClosedIcon
Icon
getDefaultClosedIcon
Icon
getDefaultLeafIcon
Icon
getDefaultOpenIcon
Icon
getLeafIcon
Icon
getOpenIcon

Uses in package javax.swing.border

Constructors with parameter type javax.swing.Icon

MatteBorder.MatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
Constructs a MatteBorder given the width on each side and an icon for tiling the border area.
MatteBorder.MatteBorder(Insets borderInsets, Icon tileIcon)
Constructs a MatteBorder given its insets and an icon for tiling the border area.
Constructs a MatteBorder given an icon for tiling the border area.

Fields of type javax.swing.Icon

Icon
The icon is used for filling the border with a tile, or null if the border is filled with a solid color.

Methods with return type javax.swing.Icon

Icon
Returns the icon is used for tiling the border, or null if the border is filled with a color instead of an icon.