|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV NEXT | ||||||||
Uses of Interface
javax.swing.Icon
| Uses of Icon in javax.swing |
| Classes in javax.swing that implement Icon | |
class |
ImageIcon
An ImageIcon.AccessibleImageIcon implementation that is backed by an java.awt.Image. |
| Fields in javax.swing declared as Icon | |
(package private) Icon |
AbstractButton.default_icon
The icon displayed by default. |
(package private) Icon |
AbstractButton.pressed_icon
The icon displayed when the button is pressed. |
(package private) Icon |
AbstractButton.disabeldIcon
The icon displayed when the button is disabled. |
(package private) Icon |
AbstractButton.selectedIcon
The icon displayed when the button is selected. |
(package private) Icon |
AbstractButton.disabledSelectedIcon
The icon displayed when the button is selected but disabled. |
(package private) Icon |
AbstractButton.rolloverIcon
The icon displayed when the button is rolled over. |
(package private) Icon |
AbstractButton.rolloverSelectedIcon
The icon displayed when the button is selected and rolled over. |
(package private) Icon |
AbstractButton.current_icon
The icon currently displayed. |
private Icon |
JLabel.icon
The icon painted when the label is enabled. |
private Icon |
JLabel.disabledIcon
The icon painted when the label is disabled. |
protected Icon |
JInternalFrame.frameIcon
The icon used in the JMenuBar in the TitlePane. |
private Icon |
TransferHandler.visualRepresentation
|
private Icon |
JTabbedPane.Page.icon
The active icon associated with the tab. |
private Icon |
JTabbedPane.Page.disabledIcon
The disabled icon associated with the tab. |
protected Icon |
JOptionPane.icon
The icon displayed in the dialog/internal frame. |
| Methods in javax.swing that return Icon | |
Icon |
UIDefaults.getIcon(java.lang.Object key)
Returns an icon entry for the default locale. |
Icon |
UIDefaults.getIcon(java.lang.Object key,
java.util.Locale locale)
Returns an icon entry for a specic locale. |
static Icon |
UIManager.getIcon(java.lang.Object key)
Returns an Icon from the defaults table. |
static Icon |
UIManager.getIcon(java.lang.Object key,
java.util.Locale locale)
Returns an Icon from the defaults table. |
Icon |
AbstractButton.getIcon()
Return the button's default "icon" property. |
Icon |
AbstractButton.getPressedIcon()
Return the button's "pressedIcon" property. |
Icon |
AbstractButton.getDisabledIcon()
Return the button's "disabledIcon" property. |
Icon |
AbstractButton.getDisabledSelectedIcon()
Return the button's disabled selected icon. |
Icon |
AbstractButton.getRolloverIcon()
Return the button's rollover icon. |
Icon |
AbstractButton.getRolloverSelectedIcon()
Return the button's rollover selected icon. |
Icon |
AbstractButton.getSelectedIcon()
Return the button's selected icon. |
Icon |
JLabel.getIcon()
This method returns the active icon. |
Icon |
JLabel.getDisabledIcon()
This method returns the disabled icon. |
Icon |
JInternalFrame.getFrameIcon()
This method returns the Frame Icon (the icon used in the JInternalFrame TitlePane and iconified frame). |
Icon |
TransferHandler.getVisualRepresentation(java.awt.datatransfer.Transferable t)
|
Icon |
JTabbedPane.getIconAt(int index)
This method returns the active icon given the index. |
Icon |
JTabbedPane.getDisabledIconAt(int index)
This method returns the disabled icon given the index. |
Icon |
JTabbedPane.Page.getIcon()
This method returns the active icon. |
Icon |
JTabbedPane.Page.getDisabledIcon()
This method returns the disabled icon. |
Icon |
JFileChooser.getIcon(java.io.File f)
Returns the icon provided by the current (or default) javax.swing.filechooser.FileView. |
Icon |
JOptionPane.getIcon()
This method returns the icon displayed. |
| Methods in javax.swing with parameters of type Icon | |
static java.lang.String |
SwingUtilities.layoutCompoundLabel(JComponent c,
java.awt.FontMetrics fm,
java.lang.String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.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. |
static java.lang.String |
SwingUtilities.layoutCompoundLabel(java.awt.FontMetrics fm,
java.lang.String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.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. |
protected void |
AbstractButton.init(java.lang.String text,
Icon icon)
|
void |
AbstractButton.setIcon(Icon i)
Set the button's default "icon" property. |
void |
AbstractButton.setPressedIcon(Icon pressedIcon)
Set the button's "pressedIcon" property. |
void |
AbstractButton.setDisabledIcon(Icon d)
Set the button's "disabledIcon" property. |
void |
AbstractButton.setDisabledSelectedIcon(Icon icon)
Set the button's disabled selected icon. |
void |
AbstractButton.setRolloverIcon(Icon r)
Set the button's rollover icon. |
void |
AbstractButton.setRolloverSelectedIcon(Icon r)
Set the button's rollover selected icon. |
void |
AbstractButton.setSelectedIcon(Icon s)
Set the button's selected icon. |
protected void |
JMenuItem.init(java.lang.String text,
Icon icon)
Initializes this menu item |
void |
JLabel.setIcon(Icon newIcon)
This method changes the "icon" property. |
void |
JLabel.setDisabledIcon(Icon newIcon)
This method changes the "disabledIcon" property. |
void |
JInternalFrame.setFrameIcon(Icon icon)
This method sets the Icon to be used in two places. |
static javax.swing.border.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. |
void |
JTabbedPane.insertTab(java.lang.String title,
Icon icon,
java.awt.Component component,
java.lang.String tip,
int index)
This method inserts tabs into JTabbedPane. |
void |
JTabbedPane.addTab(java.lang.String title,
Icon icon,
java.awt.Component component,
java.lang.String tip)
This method adds a tab to the JTabbedPane. |
void |
JTabbedPane.addTab(java.lang.String title,
Icon icon,
java.awt.Component component)
This method adds a tab to the JTabbedPane. |
void |
JTabbedPane.setIconAt(int index,
Icon icon)
This method sets the icon of the tab. |
void |
JTabbedPane.setDisabledIconAt(int index,
Icon disabledIcon)
This method sets the disabled icon of the tab. |
int |
JTabbedPane.indexOfTab(Icon icon)
This method finds the index of a tab given the icon. |
void |
JTabbedPane.Page.setIcon(Icon icon)
This method sets the active icon. |
void |
JTabbedPane.Page.setDisabledIcon(Icon disabledIcon)
This method sets the disabled icon. |
void |
JTextPane.insertIcon(Icon icon)
Inserts an Icon into the text at the current caret position. |
void |
JOptionPane.setIcon(Icon newIcon)
This method changes the icon property. |
static int |
JOptionPane.showConfirmDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
Icon icon)
This method shows a confirmation dialog with the given message, title, optionType, messageType and icon. |
static java.lang.Object |
JOptionPane.showInputDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int messageType,
Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectionValue)
This method shows an input dialog with the given message, title, messageType, icon, selectionValues, and initialSelectionValue. |
static int |
JOptionPane.showInternalConfirmDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.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. |
static java.lang.Object |
JOptionPane.showInternalInputDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int messageType,
Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectionValue)
This method shows an internal input dialog with the given message, title message type, icon, selection value list and initial selection value. |
static void |
JOptionPane.showInternalMessageDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int messageType,
Icon icon)
This method shows an internal message dialog with the given message, title, message type and icon. |
static int |
JOptionPane.showInternalOptionDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
Icon icon,
java.lang.Object[] options,
java.lang.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. |
static void |
JOptionPane.showMessageDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int messageType,
Icon icon)
This method shows a message dialog with the given message, title, messageType and icon. |
static int |
JOptionPane.showOptionDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
Icon icon,
java.lang.Object[] options,
java.lang.Object initialValue)
This method shows an option dialog with the given message, title, optionType, messageType, icon, options and initialValue. |
| Constructors in javax.swing with parameters of type Icon | |
JMenuItem(Icon icon)
Creates a new JMenuItem with the given icon. |
|
JMenuItem(java.lang.String text,
Icon icon)
Creates a new JMenuItem with specified text and icon. |
|
JLabel(Icon image)
Creates a new vertically and horizontally centered JLabel object with no text and the given icon. |
|
JLabel(Icon image,
int horizontalAlignment)
Creates a new vertically centered JLabel object with no text and the given icon and horizontal alignment. |
|
JLabel(java.lang.String text,
Icon icon,
int horizontalAlignment)
Creates a new vertically centered JLabel object with the given text, icon, and horizontal alignment. |
|
JCheckBoxMenuItem(Icon icon)
Creates a new JCheckBoxMenuItem with given icon |
|
JCheckBoxMenuItem(java.lang.String text,
Icon icon)
Creates a new JCheckBoxMenuItem object with given label and icon |
|
JCheckBoxMenuItem(java.lang.String text,
Icon icon,
boolean state)
Creates a new JCheckBoxMenuItem object with given label, icon, and marked as checked if given 'state' is true. |
|
JButton(Icon icon)
Creates a new button with the specified icon (and an empty string for the button text). |
|
JButton(java.lang.String text,
Icon icon)
Creates a new button with the specified text and icon. |
|
JToggleButton(Icon icon)
Constructs an unselected toggle button with the supplied icon and no text. |
|
JToggleButton(Icon icon,
boolean selected)
Constructs a toggle button with the supplied icon and state. |
|
JToggleButton(java.lang.String text,
Icon icon)
Constructs an unselected toggle button with the supplied text and icon. |
|
JToggleButton(java.lang.String text,
Icon icon,
boolean selected)
Constructs a toggle button with the supplied text, icon and state. |
|
AbstractAction(java.lang.String name,
Icon icon)
Creates a new action with the specified name and icon. |
|
JRadioButton(Icon icon)
Constructs an unselected radio button with the supplied icon and no text. |
|
JRadioButton(Icon icon,
boolean selected)
Constructs a radio button with the supplied icon and state. |
|
JRadioButton(java.lang.String text,
Icon icon)
Constructs an unselected radio button with the supplied text and icon. |
|
JRadioButton(java.lang.String text,
Icon icon,
boolean selected)
Constructs a radio button with the supplied text, icon and state. |
|
JTabbedPane.Page(java.lang.String title,
Icon icon,
java.awt.Component component,
java.lang.String tip)
Creates a new data storage for the tab. |
|
JCheckBox(Icon icon)
|
|
JCheckBox(Icon icon,
boolean selected)
|
|
JCheckBox(java.lang.String text,
Icon icon)
|
|
JCheckBox(java.lang.String text,
Icon icon,
boolean selected)
|
|
JRadioButtonMenuItem(Icon icon)
Creates a new JRadioButtonMenuItem with specified icon |
|
JRadioButtonMenuItem(java.lang.String text,
Icon icon)
Creates a new JRadioButtonMenuItem with specified label and icon |
|
JRadioButtonMenuItem(Icon icon,
boolean selected)
Creates a new JRadioButtonMenuItem with specified icon and given selected state |
|
JRadioButtonMenuItem(java.lang.String text,
Icon icon,
boolean selected)
Creates a new JRadioButtonMenuItem with specified label, icon and selected state. |
|
JOptionPane(java.lang.Object message,
int messageType,
int optionType,
Icon icon)
Creates a new JOptionPane object using the given message, messageType, optionType and icon. |
|
JOptionPane(java.lang.Object message,
int messageType,
int optionType,
Icon icon,
java.lang.Object[] options)
Creates a new JOptionPane object using the given message, messageType, optionType, icon and options. |
|
JOptionPane(java.lang.Object message,
int messageType,
int optionType,
Icon icon,
java.lang.Object[] options,
java.lang.Object initialValue)
Creates a new JOptionPane object using the given message, messageType, optionType, icon, options and initialValue. |
|
|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV NEXT | ||||||||