Java Platform 1.2
Beta 4

Uses of Interface
com.sun.java.swing.Icon

Packages that use Icon
com.sun.java.swing Provides a set of "lightweight" (all-Java
com.sun.java.swing.border Provides classes and interface for drawing specialized borders around a Swing component.  
com.sun.java.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.  
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
com.sun.java.swing.tree Provides classes and interfaces for dealing with java.awt.swing. 
 

Uses of Icon in com.sun.java.swing
 

Classes in com.sun.java.swing that implement Icon
  ImageIcon
          An implementation of the Icon interface that paints Icons from Images.
 

Fields in com.sun.java.swing declared as Icon
protected  Icon JOptionPane.icon
          Icon used in pane.
protected  Icon JInternalFrame.frameIcon
          The icon shown in the top-left corner of the frame.
 

Methods in com.sun.java.swing that return Icon
 Icon AbstractButton.getIcon()
          Returns the default icon.
 Icon AbstractButton.getPressedIcon()
          Returns the pressed icon for the button.
 Icon AbstractButton.getSelectedIcon()
          Returns the selected icon for the button.
 Icon AbstractButton.getRolloverIcon()
          Returns the rollover icon for the button.
 Icon AbstractButton.getRolloverSelectedIcon()
          Returns the rollover seletion icon for the button.
 Icon AbstractButton.getDisabledIcon()
          Returns the icon used by the button when it's disabled.
 Icon AbstractButton.getDisabledSelectedIcon()
          Returns the icon used by the button when it's disabled and selected.
static Icon UIManager.getIcon(Object key)
           
 Icon JOptionPane.getIcon()
          Returns the icon this pane displays.
 Icon JLabel.getIcon()
          Returns the graphic image (glyph, icon) that the label displays.
 Icon JLabel.getDisabledIcon()
          Returns the value of the disabledIcon property if it's been set, If it hasn't been set and the value of the icon property is an ImageIcon, we compute a "grayed out" version of the icon and update the disabledIcon property with that.
 Icon JTabbedPane.getIconAt(int index)
          Returns the tab icon at index.
 Icon JTabbedPane.getDisabledIconAt(int index)
          Returns the tab disabled icon at index.
 Icon JInternalFrame.getFrameIcon()
          Returns the image displayed in the title bar of the frame (usually in the top-left corner).
 Icon JFileChooser.getIcon(File f)
           
 Icon UIDefaults.getIcon(Object key)
          If the value of key is an Icon return it, otherwise return null.
 

Methods in com.sun.java.swing with parameters of type Icon
 void AbstractButton.setIcon(Icon defaultIcon)
          Sets the button's default icon.
 void AbstractButton.setPressedIcon(Icon pressedIcon)
          Sets the pressed icon for the button.
 void AbstractButton.setSelectedIcon(Icon selectedIcon)
          Sets the selected 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.setDisabledIcon(Icon disabledIcon)
          Sets the disabled icon for the button.
 void AbstractButton.setDisabledSelectedIcon(Icon disabledSelectedIcon)
          Sets the disabled selection icon for the button.
protected  void AbstractButton.init(String text, Icon icon)
           
protected  void JMenuItem.init(String text, Icon icon)
          Initialize the menu item with the specified text and icon.
protected  void JCheckBoxMenuItem.init(String text, Icon icon)
           
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 MatteBorder BorderFactory.createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
           
protected  void JRadioButtonMenuItem.init(String text, Icon icon)
          Initialize the JRadioButtonMenuItem with the specified text and Icon.
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 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.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
          Brings up a modal dialog with a specified icon, where the number of choices is determined by the optionType parameter.
static int JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
          Brings up a modal dialog with a specified icon, where the initial choice is dermined by the initialValue parameter and the number of choices is determined by the optionType parameter.
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.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 the optionType parameter.
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 dermined by the initialValue parameter and the number of choices is determined by the optionType 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.
 void JOptionPane.setIcon(Icon newIcon)
          Sets the icon to display.
 void JLabel.setIcon(Icon icon)
          Defines the icon this component will display.
 void JLabel.setDisabledIcon(Icon disabledIcon)
          Set the icon to be displayed if this JLabel is "disabled", i.e.
 void JTabbedPane.insertTab(String title, Icon icon, Component component, String tip, int index)
          Inserts a component, at index, represented by a title and/or icon, either of which may be null.
 void JTabbedPane.addTab(String title, Icon icon, Component component, String tip)
          Adds a component and tip represented by a title and/or icon, either of which can be null.
 void JTabbedPane.addTab(String title, Icon icon, Component component)
          Adds a component represented by a title and/or icon, either of which can be null.
 void JTabbedPane.setIconAt(int index, Icon icon)
          Sets the icon at index to icon which can be null.
 void JTabbedPane.setDisabledIconAt(int index, Icon disabledIcon)
          Sets the disabled icon at index to icon which can be null.
 int JTabbedPane.indexOfTab(Icon icon)
          Returns the first tab index with a given icon.
 void JInternalFrame.setFrameIcon(Icon icon)
          Sets an image to be displayed in the titlebar of the frame (usually in the top-left corner).
 void JTextPane.insertIcon(Icon g)
          Inserts an icon into the document as a replacement for the currently selected content.
 

Constructors in com.sun.java.swing with parameters of type Icon
JToggleButton.JToggleButton(Icon icon)
          Creates an initially unselected toggle button with the specified image but no text.
JToggleButton.JToggleButton(Icon icon, boolean selected)
          Creates a toggle button with the specified image and selection state, but no text.
JToggleButton.JToggleButton(String text, Icon icon)
          Creates a toggle button that has the specified text and image, and that is initially unselected.
JToggleButton.JToggleButton(String text, Icon icon, boolean selected)
          Creates a toggle button with the specified text, image, and selection state.
JMenuItem.JMenuItem(Icon icon)
          Creates a menuItem with an icon.
JMenuItem.JMenuItem(String text, Icon icon)
          Creates a menuItem with the supplied text and icon.
JCheckBoxMenuItem.JCheckBoxMenuItem(Icon icon)
          Creates an initially unselected checkboxMenuItem with an icon.
JCheckBoxMenuItem.JCheckBoxMenuItem(String text, Icon icon)
          Creates an initially unselected checkboxMenuItem with the specified text and icon.
JCheckBoxMenuItem.JCheckBoxMenuItem(String text, Icon icon, boolean b)
          Creates a checkboxMenuItem with the specified text, icon, and selection state.
JButton.JButton(Icon icon)
          Creates a button with an icon.
JButton.JButton(String text, Icon icon)
          Creates a button with initial text and an icon.
AbstractAction.AbstractAction(String name, Icon icon)
          Defines an Action object with the specified description string and a the specified icon.
JRadioButtonMenuItem.JRadioButtonMenuItem(Icon icon)
          Creates a JRadioButtonMenuItem with an icon.
JRadioButtonMenuItem.JRadioButtonMenuItem(String text, Icon icon)
          Creates a JRadioButtonMenuItem with the specified text and Icon.
JRadioButtonMenuItem.JRadioButtonMenuItem(Icon icon, boolean selected)
          Creates a radio button menu item with the specified image and selection state, but no text.
JRadioButtonMenuItem.JRadioButtonMenuItem(String text, Icon icon, boolean selected)
          Creates a radio button menu item that has the specified text, image, and selection state.
JCheckBox.JCheckBox(Icon icon)
          Creates an initially unselected checkbox with an icon.
JCheckBox.JCheckBox(Icon icon, boolean selected)
          Creates a checkbox with an icon and specifies whether or not it is initially selected.
JCheckBox.JCheckBox(String text, Icon icon)
          Creates an initially unselected checkbox with the specified text and icon.
JCheckBox.JCheckBox(String text, Icon icon, boolean selected)
          Creates a checkbox with text and icon, and specifies whether or not it is initially selected.
JOptionPane.JOptionPane(Object message, int messageType, int optionType, Icon icon)
          Creates an instance of JOptionPane to display a message with the specified message type, options, and icon.
JOptionPane.JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options)
          Creates an instance of JOptionPane to display a message with the specified message type, icon, and options.
JOptionPane.JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)
          Creates an instance of JOptionPane to display a message with the specified message type, icon, and options, with the inititially-selected option specified.
JLabel.JLabel(String text, Icon icon, int horizontalAlignment)
          Creates a JLabel instance with the specified text, image, and horizontal alignment.
JLabel.JLabel(Icon image, int horizontalAlignment)
          Creates a JLabel instance with the specified image and horizontal alignment.
JLabel.JLabel(Icon image)
          Creates a JLabel instance with the specified image.
JRadioButton.JRadioButton(Icon icon)
          Creates an initially unselected radio button with the specified image but no text.
JRadioButton.JRadioButton(Icon icon, boolean selected)
          Creates a radio button with the specified image and selection state, but no text.
JRadioButton.JRadioButton(String text, Icon icon)
          Creates a radio button that has the specified text and image, and that is initially unselected.
JRadioButton.JRadioButton(String text, Icon icon, boolean selected)
          Creates a radio button that has the specified text, image, and selection state.
 

Uses of Icon in com.sun.java.swing.border
 

Fields in com.sun.java.swing.border declared as Icon
protected  Icon MatteBorder.tileIcon
           
 

Constructors in com.sun.java.swing.border with parameters of type Icon
MatteBorder.MatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
          Creates a matte border with the specified insets and tile icon.
MatteBorder.MatteBorder(Icon tileIcon)
          Creates a matte border with the specified tile icon.
 

Uses of Icon in com.sun.java.swing.plaf
 

Classes in com.sun.java.swing.plaf that implement Icon
  IconUIResource
           
 

Constructors in com.sun.java.swing.plaf with parameters of type Icon
IconUIResource.IconUIResource(Icon delegate)
          Creates a UIResource icon object which wraps an existing Icon instance.
BorderUIResource.MatteBorderUIResource.BorderUIResource.MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon)
           
BorderUIResource.MatteBorderUIResource.BorderUIResource.MatteBorderUIResource(Icon tileIcon)
           
 

Uses of Icon in com.sun.java.swing.text
 

Methods in com.sun.java.swing.text that return Icon
static Icon StyleConstants.getIcon(AttributeSet a)
          Gets the icon setting from the attribute list.
 

Methods in com.sun.java.swing.text with parameters of type Icon
static void StyleConstants.setIcon(MutableAttributeSet a, Icon c)
          Sets the icon attribute.
 

Uses of Icon in com.sun.java.swing.tree
 

Fields in com.sun.java.swing.tree declared as Icon
protected  Icon DefaultTreeCellEditor.editingIcon
          Icon to use when editing.
protected  Icon DefaultTreeCellRenderer.closedIcon
          Icon used to show non-leaf nodes that aren't expanded.
protected  Icon DefaultTreeCellRenderer.leafIcon
          Icon used to show leaf nodes.
protected  Icon DefaultTreeCellRenderer.openIcon
          Icon used to show non-leaf nodes that are expanded.
 

Methods in com.sun.java.swing.tree that return Icon
 Icon DefaultTreeCellRenderer.getDefaultOpenIcon()
          Returns the default icon used to represent non-leaf nodes that are expanded.
 Icon DefaultTreeCellRenderer.getDefaultClosedIcon()
          Returns the default icon used to represent non-leaf nodes that are not expanded.
 Icon DefaultTreeCellRenderer.getDefaultLeafIcon()
          Returns the default icon used to represent leaf nodes.
 Icon DefaultTreeCellRenderer.getOpenIcon()
          Returns the icon used to represent non-leaf nodes that are expanded.
 Icon DefaultTreeCellRenderer.getClosedIcon()
          Returns the icon used to represent non-leaf nodes that are not expanded.
 Icon DefaultTreeCellRenderer.getLeafIcon()
          Returns the icon used to represent leaf nodes.
 

Methods in com.sun.java.swing.tree with parameters of type Icon
 void DefaultTreeCellRenderer.setOpenIcon(Icon newIcon)
          Sets the icon used to represent non-leaf nodes that are expanded.
 void 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.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.