Uses of Interface javax.swing.Icon

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
Collapse Icon for the tree.
Icon
DOCUMENT ME!
Icon
DOCUMENT ME!
Icon
DOCUMENT ME!
Icon
Expanded Icon for the tree.
Icon
DOCUMENT ME!
Icon
DOCUMENT ME!
Icon
DOCUMENT ME!
Icon
DOCUMENT ME!
Icon
Icon
The icon displayed in the iconify button.
Icon
DOCUMENT ME!
Icon
The icon displayed in the maximize button.
Icon
The icon displayed in the restore button.
Icon
DOCUMENT ME!
Icon
DOCUMENT ME!

Methods with parameter type javax.swing.Icon

void
DOCUMENT ME!
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
DOCUMENT ME!
Icon
Icon
Icon
Returns the current collapsed icon.
Icon
Icon
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
DOCUMENT ME!
Icon
This method returns an icon for the tab.
Icon
This method returns the icon for the given messageType.
Icon
Icon
Icon
Icon
Icon

Uses in package javax.swing.plaf.metal

Classes implementing javax.swing.Icon

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
A tree control icon.
class
A tree folder icon.
class
A tree leaf icon.

Methods with return type javax.swing.Icon

Icon
Returns the icon used to display the thumb for a horizontally oriented JSlider.
Icon
MetalIconFactory.getTreeControlIcon(boolean isCollapsed)
Creates and returns a tree control icon.
Icon
Creates and returns a new tree folder icon.
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.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.tree

Fields of type javax.swing.Icon

Icon
closedIcon
Icon
editingIcon
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.text

Methods with parameter type javax.swing.Icon

void

Methods with return type javax.swing.Icon

Icon

Uses in package javax.swing.filechooser

Methods with return type javax.swing.Icon

Icon
getIcon
Icon
DOCUMENT ME!

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.

Uses in package javax.swing

Classes implementing javax.swing.Icon

class

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
insertIcon
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
DOCUMENT ME!
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.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.