| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.border |
Provides classes and interface for drawing specialized borders around a Swing component.
|
| javax.swing.colorchooser |
Contains classes and interfaces used by the
JColorChooser component.
|
| javax.swing.filechooser |
Contains classes and interfaces used by the
JFileChooser component.
|
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel (once codenamed
Metal), which is the default look and feel.
|
| javax.swing.plaf.nimbus |
Provides user interface objects built according to the cross-platform Nimbus look and feel.
|
| javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImageIcon
An implementation of the Icon interface that paints Icons from Images.
|
| Modifier and Type | Field and Description |
|---|---|
protected 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 Type | Method and Description |
|---|---|
Icon |
JLabel.getDisabledIcon()
Returns the icon used by the label when it's disabled.
|
Icon |
AbstractButton.getDisabledIcon()
Returns the icon used by the button when it's disabled.
|
Icon |
LookAndFeel.getDisabledIcon(JComponent
Returns an
Icon with a disabled appearance.
|
Icon |
JTabbedPane.getDisabledIconAt(int index)
Returns the tab disabled icon at
index.
|
Icon |
AbstractButton.getDisabledSelectedIcon()
Returns the icon used by the button when it's disabled and selected.
|
Icon |
LookAndFeel.getDisabledSelectedIcon(JComponent
Returns an
Icon for use by disabled components that are also selected.
|
Icon |
JInternalFrame.getFrameIcon()
Returns the image displayed in the title bar of this internal frame (usually in the top-left corner).
|
Icon |
JOptionPane.getIcon()
Returns the icon this pane displays.
|
Icon |
JLabel.getIcon()
Returns the graphic image (glyph, icon) that the label displays.
|
Icon |
AbstractButton.getIcon()
Returns the default icon.
|
Icon |
JFileChooser.getIcon(File
Returns the icon for this file or type of file, depending on the system.
|
Icon |
UIDefaults.getIcon(Object
If the value of
key is an
Icon return it, otherwise return
null.
|
static Icon |
UIManager.getIcon(Object
Returns an
Icon from the defaults.
|
Icon |
UIDefaults.getIcon(Object
If the value of
key for the given
Locale is an
Icon return it, otherwise return
null.
|
static Icon |
UIManager.getIcon(Object
Returns an
Icon from the defaults that is appropriate for the given locale.
|
Icon |
JTabbedPane.getIconAt(int index)
Returns the tab icon at
index.
|
Icon |
AbstractButton.getPressedIcon()
Returns the pressed icon for the button.
|
Icon |
AbstractButton.getRolloverIcon()
Returns the rollover icon for the button.
|
Icon |
AbstractButton.getRolloverSelectedIcon()
Returns the rollover selection icon for the button.
|
Icon |
AbstractButton.getSelectedIcon()
Returns the selected icon for the button.
|
Icon |
TransferHandler.getVisualRepresentation(Transferable
Returns an object that establishes the look of a transfer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTabbedPane.addTab(String
Adds a
component represented by a
title and/or
icon, either of which can be
null.
|
void |
JTabbedPane.addTab(String
Adds a
component and
tip represented by a
title and/or
icon, either of which can be
null.
|
static MatteBorder |
BorderFactory.createMatteBorder(int top, int left, int bottom, int right, Icon
Creates a matte-look border that consists of multiple tiles of a specified icon.
|
Icon |
LookAndFeel.getDisabledIcon(JComponent
Returns an
Icon with a disabled appearance.
|
Icon |
LookAndFeel.getDisabledSelectedIcon(JComponent
Returns an
Icon for use by disabled components that are also selected.
|
int |
JTabbedPane.indexOfTab(Icon
Returns the first tab index with a given
icon, or -1 if no tab has this icon.
|
protected void |
JMenuItem.init(String
Initializes the menu item with the specified text and icon.
|
protected void |
AbstractButton.init(String
|
void |
JTextPane.insertIcon(Icon
Inserts an icon into the document as a replacement for the currently selected content.
|
void |
JTabbedPane.insertTab(String
Inserts a new tab for the given component, at the given index, represented by the given title and/or icon, either of which may be
null.
|
static String |
SwingUtilities.layoutCompoundLabel(FontMetrics
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
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 |
JLabel.setDisabledIcon(Icon
Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)).
|
void |
AbstractButton.setDisabledIcon(Icon
Sets the disabled icon for the button.
|
void |
JTabbedPane.setDisabledIconAt(int index, Icon
Sets the disabled icon at
index to
icon which can be
null.
|
void |
AbstractButton.setDisabledSelectedIcon(Icon
Sets the disabled selection icon for the button.
|
void |
JInternalFrame.setFrameIcon(Icon
Sets an image to be displayed in the titlebar of this internal frame (usually in the top-left corner).
|
void |
JOptionPane.setIcon(Icon
Sets the icon to display.
|
void |
JLabel.setIcon(Icon
Defines the icon this component will display.
|
void |
AbstractButton.setIcon(Icon
Sets the button's default icon.
|
void |
JTabbedPane.setIconAt(int index, Icon
Sets the icon at
index to
icon which can be
null.
|
void |
AbstractButton.setPressedIcon(Icon
Sets the pressed icon for the button.
|
void |
AbstractButton.setRolloverIcon(Icon
Sets the rollover icon for the button.
|
void |
AbstractButton.setRolloverSelectedIcon(Icon
Sets the rollover selected icon for the button.
|
void |
AbstractButton.setSelectedIcon(Icon
Sets the selected icon for the button.
|
static int |
JOptionPane.showConfirmDialog(Component
Brings up a dialog with a specified icon, where the number of choices is determined by the
optionType parameter.
|
static Object |
JOptionPane.showInputDialog(Component
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
Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the
optionType parameter.
|
static Object |
JOptionPane.showInternalInputDialog(Component
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
Brings up an internal dialog panel displaying a message, specifying all parameters.
|
static int |
JOptionPane.showInternalOptionDialog(Component
Brings up an internal dialog panel with a specified icon, where the initial choice is determined by the
initialValue parameter and the number of choices is determined by the
optionType parameter.
|
static void |
JOptionPane.showMessageDialog(Component
Brings up a dialog displaying a message, specifying all parameters.
|
static int |
JOptionPane.showOptionDialog(Component
Brings up a dialog with a specified icon, where the initial choice is determined by the
initialValue parameter and the number of choices is determined by the
optionType parameter.
|
| Constructor and Description | |
|---|---|
AbstractAction(String
Creates an
Action with the specified name and small icon.
|
|
JButton(Icon
Creates a button with an icon.
|
|
JButton(String
Creates a button with initial text and an icon.
|
|
JCheckBox(Icon
Creates an initially unselected check box with an icon.
|
|
JCheckBox(Icon
Creates a check box with an icon and specifies whether or not it is initially selected.
|
|
JCheckBox(String
Creates an initially unselected check box with the specified text and icon.
|
|
JCheckBox(String
Creates a check box with text and icon, and specifies whether or not it is initially selected.
|
|
JCheckBoxMenuItem(Icon
Creates an initially unselected check box menu item with an icon.
|
|
JCheckBoxMenuItem(String
Creates an initially unselected check box menu item with the specified text and icon.
|
|
JCheckBoxMenuItem(String
Creates a check box menu item with the specified text, icon, and selection state.
|
|
JLabel(Icon
Creates a
JLabel instance with the specified image.
|
|
JLabel(Icon
Creates a
JLabel instance with the specified image and horizontal alignment.
|
|
JLabel(String
Creates a
JLabel instance with the specified text, image, and horizontal alignment.
|
|
JMenuItem(Icon
Creates a
JMenuItem with the specified icon.
|
|
JMenuItem(String
Creates a
JMenuItem with the specified text and icon.
|
|
JOptionPane(Object
Creates an instance of
JOptionPane to display a message with the specified message type, options, and icon.
|
|
JOptionPane(Object
Creates an instance of
JOptionPane to display a message with the specified message type, icon, and options.
|
|
JOptionPane(Object
Creates an instance of
JOptionPane to display a message with the specified message type, icon, and options, with the initially-selected option specified.
|
|
JRadioButton(Icon
Creates an initially unselected radio button with the specified image but no text.
|
|
JRadioButton(Icon
Creates a radio button with the specified image and selection state, but no text.
|
|
JRadioButton(String
Creates a radio button that has the specified text and image, and that is initially unselected.
|
|
JRadioButton(String
Creates a radio button that has the specified text, image, and selection state.
|
|
JRadioButtonMenuItem(Icon
Creates a
JRadioButtonMenuItem with an icon.
|
|
JRadioButtonMenuItem(Icon
Creates a radio button menu item with the specified image and selection state, but no text.
|
|
JRadioButtonMenuItem(String
Creates a radio button menu item with the specified text and
Icon.
|
|
JRadioButtonMenuItem(String
Creates a radio button menu item that has the specified text, image, and selection state.
|
|
JToggleButton(Icon
Creates an initially unselected toggle button with the specified image but no text.
|
|
JToggleButton(Icon
Creates a toggle button with the specified image and selection state, but no text.
|
|
JToggleButton(String
Creates a toggle button that has the specified text and image, and that is initially unselected.
|
|
JToggleButton(String
Creates a toggle button with the specified text, image, and selection state.
|
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
MatteBorder.tileIcon
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
MatteBorder.getTileIcon()
Returns the icon used for tiling the border or null if a solid color is being used.
|
| Constructor and Description | |
|---|---|
MatteBorder(Icon
Creates a matte border with the specified tile icon.
|
|
MatteBorder(Insets
Creates a matte border with the specified insets and tile icon.
|
|
MatteBorder(int top, int left, int bottom, int right, Icon
Creates a matte border with the specified insets and tile icon.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Icon |
AbstractColorChooserPanel.getLargeDisplayIcon()
Returns the large display icon for the panel.
|
abstract Icon |
AbstractColorChooserPanel.getSmallDisplayIcon()
Returns the small display icon for the panel.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
FileView.getIcon(File
The icon that represents this file in the
JFileChooser.
|
Icon |
FileSystemView.getSystemIcon(File
Icon for a file, directory, or folder as it would be displayed in a system file browser.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IconUIResource
An Icon wrapper class which implements UIResource.
|
| Constructor and Description | |
|---|---|
IconUIResource(Icon
Creates a UIResource icon object which wraps an existing Icon instance.
|
|
MatteBorderUIResource(Icon
|
|
MatteBorderUIResource(int top, int left, int bottom, int right, Icon
|
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
BasicMenuItemUI.arrowIcon
|
protected Icon |
BasicMenuItemUI.checkIcon
|
protected Icon |
BasicInternalFrameTitlePane.closeIcon
|
protected Icon |
BasicTreeUI.collapsedIcon
|
protected Icon |
BasicFileChooserUI.computerIcon
|
protected Icon |
BasicFileChooserUI.detailsViewIcon
|
protected Icon |
BasicFileChooserUI.directoryIcon
|
protected Icon |
BasicTreeUI.expandedIcon
|
protected Icon |
BasicFileChooserUI.fileIcon
|
protected Icon |
BasicFileChooserUI.floppyDriveIcon
|
protected Icon |
BasicFileChooserUI.hardDriveIcon
|
protected Icon |
BasicFileChooserUI.homeFolderIcon
|
protected Icon |
BasicRadioButtonUI.icon
|
protected Icon |
BasicInternalFrameTitlePane.iconIcon
|
protected Icon |
BasicFileChooserUI.listViewIcon
|
protected Icon |
BasicInternalFrameTitlePane.maxIcon
|
protected Icon |
BasicInternalFrameTitlePane.minIcon
|
protected Icon |
BasicFileChooserUI.newFolderIcon
|
protected Icon |
BasicFileChooserUI.upFolderIcon
|
protected Icon |
BasicFileChooserUI.viewMenuIcon
|
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
BasicFileChooserUI.BasicFileView.iconCache
|
| Modifier and Type | Method and Description |
|---|---|
static Icon |
BasicIconFactory.createEmptyFrameIcon()
|
Icon |
BasicFileChooserUI.BasicFileView.getCachedIcon(File
|
static Icon |
BasicIconFactory.getCheckBoxIcon()
|
static Icon |
BasicIconFactory.getCheckBoxMenuItemIcon()
|
Icon |
BasicTreeUI.getCollapsedIcon()
|
Icon |
BasicRadioButtonUI.getDefaultIcon()
|
Icon |
BasicTreeUI.getExpandedIcon()
|
protected Icon |
BasicOptionPaneUI.getIcon()
Returns the icon from the JOptionPane the receiver is providing the look and feel for, or the default icon as returned from
getDefaultIcon.
|
Icon |
BasicFileChooserUI.BasicFileView.getIcon(File
|
protected Icon |
BasicTabbedPaneUI.getIconForTab(int tabIndex)
|
protected Icon |
BasicOptionPaneUI.getIconForType(int messageType)
Returns the icon to use for the passed in type.
|
static Icon |
BasicIconFactory.getMenuArrowIcon()
|
static Icon |
BasicIconFactory.getMenuItemArrowIcon()
|
static Icon |
BasicIconFactory.getMenuItemCheckIcon()
|
static Icon |
BasicIconFactory.getRadioButtonIcon()
|
static Icon |
BasicIconFactory.getRadioButtonMenuItemIcon()
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicFileChooserUI.BasicFileView.cacheIcon(File
|
protected void |
BasicTreeUI.drawCentered(Component
|
protected Dimension |
BasicMenuItemUI.getPreferredMenuItemSize(JComponent
|
protected String |
BasicLabelUI.layoutCL(JLabel
Forwards the call to SwingUtilities.layoutCompoundLabel().
|
protected void |
BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics
|
protected void |
BasicTabbedPaneUI.paintIcon(Graphics
|
protected void |
BasicMenuItemUI.paintMenuItem(Graphics
|
void |
BasicTreeUI.setCollapsedIcon(Icon
|
void |
BasicTreeUI.setExpandedIcon(Icon
|
| Modifier and Type | Class and Description |
|---|---|
class |
MetalCheckBoxIcon
CheckboxIcon implementation for OrganicCheckBoxUI
|
class |
MetalComboBoxIcon
This utility class draws the horizontal bars which indicate a MetalComboBox
|
static class |
MetalIconFactory
Warning: Serialized objects of this class will not be compatible with future Swing releases.
|
static class |
MetalIconFactory
Warning: Serialized objects of this class will not be compatible with future Swing releases.
|
static class |
MetalIconFactory
Defines an icon for Palette close
|
static class |
MetalIconFactory
Warning: Serialized objects of this class will not be compatible with future Swing releases.
|
static class |
MetalIconFactory
Warning: Serialized objects of this class will not be compatible with future Swing releases.
|
static class |
MetalIconFactory
|
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
MetalComboBoxButton.comboIcon
|
protected static Icon |
MetalSliderUI.horizThumbIcon
A default horizontal thumb
Icon.
|
protected Icon |
MetalInternalFrameTitlePane.paletteCloseIcon
|
protected static Icon |
MetalSliderUI.vertThumbIcon
A default vertical thumb
Icon.
|
| Modifier and Type | Method and Description |
|---|---|
static Icon |
MetalIconFactory.getCheckBoxIcon()
Returns a checkbox icon.
|
static Icon |
MetalIconFactory.getCheckBoxMenuItemIcon()
|
Icon |
MetalComboBoxButton.getComboIcon()
|
Icon |
MetalLookAndFeel.getDisabledIcon(JComponent
Returns an
Icon with a disabled appearance.
|
Icon |
MetalLookAndFeel.getDisabledSelectedIcon(JComponent
Returns an
Icon for use by disabled components that are also selected.
|
static Icon |
MetalIconFactory.getFileChooserDetailViewIcon()
|
static Icon |
MetalIconFactory.getFileChooserHomeFolderIcon()
|
static Icon |
MetalIconFactory.getFileChooserListViewIcon()
|
static Icon |
MetalIconFactory.getFileChooserNewFolderIcon()
|
static Icon |
MetalIconFactory.getFileChooserUpFolderIcon()
|
static Icon |
MetalIconFactory.getHorizontalSliderThumbIcon()
|
static Icon |
MetalIconFactory.getInternalFrameAltMaximizeIcon(int size)
|
static Icon |
MetalIconFactory.getInternalFrameCloseIcon(int size)
|
static Icon |
MetalIconFactory.getInternalFrameDefaultMenuIcon()
|
static Icon |
MetalIconFactory.getInternalFrameMaximizeIcon(int size)
|
static Icon |
MetalIconFactory.getInternalFrameMinimizeIcon(int size)
|
static Icon |
MetalIconFactory.getMenuArrowIcon()
|
static Icon |
MetalIconFactory.getMenuItemArrowIcon()
|
static Icon |
MetalIconFactory.getMenuItemCheckIcon()
Returns an icon to be used by
JCheckBoxMenuItem.
|
static Icon |
MetalIconFactory.getRadioButtonIcon()
|
static Icon |
MetalIconFactory.getRadioButtonMenuItemIcon()
|
static Icon |
MetalIconFactory.getTreeComputerIcon()
|
static Icon |
MetalIconFactory.getTreeControlIcon(boolean isCollapsed)
|
static Icon |
MetalIconFactory.getTreeFloppyDriveIcon()
|
static Icon |
MetalIconFactory.getTreeFolderIcon()
|
static Icon |
MetalIconFactory.getTreeHardDriveIcon()
|
static Icon |
MetalIconFactory.getTreeLeafIcon()
|
static Icon |
MetalIconFactory.getVerticalSliderThumbIcon()
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
MetalLookAndFeel.getDisabledIcon(JComponent
Returns an
Icon with a disabled appearance.
|
Icon |
MetalLookAndFeel.getDisabledSelectedIcon(JComponent
Returns an
Icon for use by disabled components that are also selected.
|
void |
MetalComboBoxButton.setComboIcon(Icon
|
| Constructor and Description | |
|---|---|
MetalComboBoxButton(JComboBox
|
|
MetalComboBoxButton(JComboBox
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
NimbusLookAndFeel.getDisabledIcon(JComponent
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
NimbusLookAndFeel.getDisabledIcon(JComponent
|
| Modifier and Type | Method and Description |
|---|---|
protected Icon |
SynthButtonUI.getDefaultIcon(AbstractButton
Returns the default icon.
|
Icon |
SynthTreeUI.getExpandedIcon()
|
protected Icon |
SynthButtonUI.getIcon(AbstractButton
Returns the Icon to use for painting the button.
|
Icon |
SynthStyle.getIcon(SynthContext
Convenience method to get a specific style property whose value is an Icon.
|
protected Icon |
SynthRadioButtonUI.getSizingIcon(AbstractButton
Returns the Icon used in calculating the preferred/minimum/maximum size.
|
protected Icon |
SynthButtonUI.getSizingIcon(AbstractButton
Returns the Icon used in calculating the preferred/minimum/maximum size.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SynthTreeUI.drawCentered(Component
|
Dimension |
SynthGraphicsUtils.getMaximumSize(SynthContext
Returns the maximum size needed to properly render an icon and text.
|
Dimension |
SynthGraphicsUtils.getMinimumSize(SynthContext
Returns the minimum size needed to properly render an icon and text.
|
protected Dimension |
SynthMenuUI.getPreferredMenuItemSize(JComponent
|
protected Dimension |
SynthMenuItemUI.getPreferredMenuItemSize(JComponent
|
Dimension |
SynthGraphicsUtils.getPreferredSize(SynthContext
Returns the preferred size needed to properly render an icon and text.
|
String |
SynthGraphicsUtils.layoutText(SynthContext
Lays out text and an icon returning, by reference, the location to place the icon and text.
|
void |
SynthGraphicsUtils.paintText(SynthContext
Paints an icon and text.
|
| Modifier and Type | Method and Description |
|---|---|
static Icon |
StyleConstants.getIcon(AttributeSet
Gets the icon setting from the attribute list.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
StyleConstants.setIcon(MutableAttributeSet
Sets the icon attribute.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
ImageView.getLoadingImageIcon()
Returns the icon to use while in the process of loading the image.
|
Icon |
ImageView.getNoImageIcon()
Returns the icon to use if the image couldn't be found.
|
| Modifier and Type | Field and Description |
|---|---|
protected 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 Type | Method and Description |
|---|---|
Icon |
DefaultTreeCellRenderer.getClosedIcon()
Returns the icon used to represent non-leaf nodes that are not expanded.
|
Icon |
DefaultTreeCellRenderer.getDefaultClosedIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded.
|
Icon |
DefaultTreeCellRenderer.getDefaultLeafIcon()
Returns the default icon, for the current laf, that is used to represent leaf nodes.
|
Icon |
DefaultTreeCellRenderer.getDefaultOpenIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded.
|
Icon |
DefaultTreeCellRenderer.getLeafIcon()
Returns the icon used to represent leaf nodes.
|
Icon |
DefaultTreeCellRenderer.getOpenIcon()
Returns the icon used to represent non-leaf nodes that are expanded.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultTreeCellRenderer.setClosedIcon(Icon
Sets the icon used to represent non-leaf nodes that are not expanded.
|
void |
DefaultTreeCellRenderer.setLeafIcon(Icon
Sets the icon used to represent leaf nodes.
|
void |
DefaultTreeCellRenderer.setOpenIcon(Icon
Sets the icon used to represent non-leaf nodes that are expanded.
|