Uses of Interface
javax.swing.Icon
-
Packages that use Icon 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 theJColorChoosercomponent.javax.swing.filechooser Contains classes and interfaces used by theJFileChoosercomponent.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.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 classHTMLEditorKitand supporting classes for creating HTML text editors.javax.swing.tree Provides classes and interfaces for dealing withjavax.swing.JTree. -
-
Uses of Icon in javax.swing
Classes in javax.swing that implement Icon Modifier and Type Class Description classImageIconAn implementation of the Icon interface that paints Icons from Images.Fields in javax.swing declared as Icon Modifier and Type Field Description protected IconJInternalFrame. frameIconThe icon shown in the top-left corner of this internal frame.protected IconJOptionPane. iconIcon used in pane.Methods in javax.swing that return Icon Modifier and Type Method Description IconAbstractButton. getDisabledIcon()Returns the icon used by the button when it's disabled.IconJLabel. getDisabledIcon()Returns the icon used by the label when it's disabled.IconLookAndFeel. getDisabledIcon(JComponent component, Icon icon)Returns anIconwith a disabled appearance.IconJTabbedPane. getDisabledIconAt(int index)Returns the tab disabled icon atindex.IconAbstractButton. getDisabledSelectedIcon()Returns the icon used by the button when it's disabled and selected.IconLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)Returns anIconfor use by disabled components that are also selected.IconJInternalFrame. getFrameIcon()Returns the image displayed in the title bar of this internal frame (usually in the top-left corner).IconAbstractButton. getIcon()Returns the default icon.IconJFileChooser. getIcon(File f)Returns the icon for this file or type of file, depending on the system.IconJLabel. getIcon()Returns the graphic image (glyph, icon) that the label displays.IconJOptionPane. getIcon()Returns the icon this pane displays.IconUIDefaults. getIcon(Object key)If the value ofkeyis anIconreturn it, otherwise returnnull.IconUIDefaults. getIcon(Object key, Locale l)If the value ofkeyfor the givenLocaleis anIconreturn it, otherwise returnnull.static IconUIManager. getIcon(Object key)Returns anIconfrom the defaults.static IconUIManager. getIcon(Object key, Locale l)Returns anIconfrom the defaults that is appropriate for the given locale.IconJTabbedPane. getIconAt(int index)Returns the tab icon atindex.IconAbstractButton. getPressedIcon()Returns the pressed icon for the button.IconAbstractButton. getRolloverIcon()Returns the rollover icon for the button.IconAbstractButton. getRolloverSelectedIcon()Returns the rollover selection icon for the button.IconAbstractButton. getSelectedIcon()Returns the selected icon for the button.IconTransferHandler. getVisualRepresentation(Transferable t)Returns an object that establishes the look of a transfer.Methods in javax.swing with parameters of type Icon Modifier and Type Method Description voidJTabbedPane. addTab(String title, Icon icon, Component component)Adds acomponentrepresented by atitleand/oricon, either of which can benull.voidJTabbedPane. addTab(String title, Icon icon, Component component, String tip)Adds acomponentandtiprepresented by atitleand/oricon, either of which can benull.static MatteBorderBorderFactory. createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)Creates a matte-look border that consists of multiple tiles of a specified icon.IconLookAndFeel. getDisabledIcon(JComponent component, Icon icon)Returns anIconwith a disabled appearance.IconLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)Returns anIconfor use by disabled components that are also selected.intJTabbedPane. indexOfTab(Icon icon)Returns the first tab index with a givenicon, or -1 if no tab has this icon.protected voidAbstractButton. init(String text, Icon icon)Initialization of theAbstractButton.protected voidJMenuItem. init(String text, Icon icon)Initializes the menu item with the specified text and icon.voidJTextPane. insertIcon(Icon g)Inserts an icon into the document as a replacement for the currently selected content.voidJTabbedPane. insertTab(String title, Icon icon, Component component, String tip, int index)Inserts a new tab for the given component, at the given index, represented by the given title and/or icon, either of which may benull.static StringSwingUtilities. 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 StringSwingUtilities. 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)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.voidAbstractButton. setDisabledIcon(Icon disabledIcon)Sets the disabled icon for the button.voidJLabel. setDisabledIcon(Icon disabledIcon)Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)).voidJTabbedPane. setDisabledIconAt(int index, Icon disabledIcon)Sets the disabled icon atindextoiconwhich can benull.voidAbstractButton. setDisabledSelectedIcon(Icon disabledSelectedIcon)Sets the disabled selection icon for the button.voidJInternalFrame. setFrameIcon(Icon icon)Sets an image to be displayed in the titlebar of this internal frame (usually in the top-left corner).voidAbstractButton. setIcon(Icon defaultIcon)Sets the button's default icon.voidJLabel. setIcon(Icon icon)Defines the icon this component will display.voidJOptionPane. setIcon(Icon newIcon)Sets the icon to display.voidJTabbedPane. setIconAt(int index, Icon icon)Sets the icon atindextoiconwhich can benull.voidAbstractButton. setPressedIcon(Icon pressedIcon)Sets the pressed icon for the button.voidAbstractButton. setRolloverIcon(Icon rolloverIcon)Sets the rollover icon for the button.voidAbstractButton. setRolloverSelectedIcon(Icon rolloverSelectedIcon)Sets the rollover selected icon for the button.voidAbstractButton. setSelectedIcon(Icon selectedIcon)Sets the selected icon for the button.static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)Brings up a dialog with a specified icon, where the number of choices is determined by theoptionTypeparameter.static ObjectJOptionPane. 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 intJOptionPane. 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 theoptionTypeparameter.static ObjectJOptionPane. 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.static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)Brings up an internal dialog panel displaying a message, specifying all parameters.static intJOptionPane. 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 determined by theinitialValueparameter and the number of choices is determined by theoptionTypeparameter.static voidJOptionPane. showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)Brings up a dialog displaying a message, specifying all parameters.static intJOptionPane. showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)Brings up a dialog with a specified icon, where the initial choice is determined by theinitialValueparameter and the number of choices is determined by theoptionTypeparameter.Constructors in javax.swing with parameters of type Icon Constructor Description AbstractAction(String name, Icon icon)Creates anActionwith the specified name and small icon.JButton(String text, Icon icon)Creates a button with initial text and an icon.JButton(Icon icon)Creates a button with an icon.JCheckBox(String text, Icon icon)Creates an initially unselected check box with the specified text and icon.JCheckBox(String text, Icon icon, boolean selected)Creates a check box with text and icon, and specifies whether or not it is initially selected.JCheckBox(Icon icon)Creates an initially unselected check box with an icon.JCheckBox(Icon icon, boolean selected)Creates a check box with an icon and specifies whether or not it is initially selected.JCheckBoxMenuItem(String text, Icon icon)Creates an initially unselected check box menu item with the specified text and icon.JCheckBoxMenuItem(String text, Icon icon, boolean b)Creates a check box menu item with the specified text, icon, and selection state.JCheckBoxMenuItem(Icon icon)Creates an initially unselected check box menu item with an icon.JLabel(String text, Icon icon, int horizontalAlignment)Creates aJLabelinstance with the specified text, image, and horizontal alignment.JLabel(Icon image)Creates aJLabelinstance with the specified image.JLabel(Icon image, int horizontalAlignment)Creates aJLabelinstance with the specified image and horizontal alignment.JMenuItem(String text, Icon icon)Creates aJMenuItemwith the specified text and icon.JMenuItem(Icon icon)Creates aJMenuItemwith the specified icon.JOptionPane(Object message, int messageType, int optionType, Icon icon)Creates an instance ofJOptionPaneto display a message with the specified message type, options, and icon.JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options)Creates an instance ofJOptionPaneto display a message with the specified message type, icon, and options.JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)Creates an instance ofJOptionPaneto display a message with the specified message type, icon, and options, with the initially-selected option specified.JRadioButton(String text, Icon icon)Creates a radio button that has the specified text and image, and that is initially unselected.JRadioButton(String text, Icon icon, boolean selected)Creates a radio button that has the specified text, image, and selection state.JRadioButton(Icon icon)Creates an initially unselected radio button with the specified image but no text.JRadioButton(Icon icon, boolean selected)Creates a radio button with the specified image and selection state, but no text.JRadioButtonMenuItem(String text, Icon icon)Creates a radio button menu item with the specified text andIcon.JRadioButtonMenuItem(String text, Icon icon, boolean selected)Creates a radio button menu item that has the specified text, image, and selection state.JRadioButtonMenuItem(Icon icon)Creates aJRadioButtonMenuItemwith an icon.JRadioButtonMenuItem(Icon icon, boolean selected)Creates a radio button menu item with the specified image and selection state, but no text.JToggleButton(String text, Icon icon)Creates a toggle button that has the specified text and image, and that is initially unselected.JToggleButton(String text, Icon icon, boolean selected)Creates a toggle button with the specified text, image, and selection state.JToggleButton(Icon icon)Creates an initially unselected toggle button with the specified image but no text.JToggleButton(Icon icon, boolean selected)Creates a toggle button with the specified image and selection state, but no text. -
Uses of Icon in javax.swing.border
Fields in javax.swing.border declared as Icon Modifier and Type Field Description protected IconMatteBorder. tileIconThe icon to be used for tiling the border.Methods in javax.swing.border that return Icon Modifier and Type Method Description IconMatteBorder. getTileIcon()Returns the icon used for tiling the border or null if a solid color is being used.Constructors in javax.swing.border with parameters of type Icon Constructor Description MatteBorder(int top, int left, int bottom, int right, Icon tileIcon)Creates a matte border with the specified insets and tile icon.MatteBorder(Insets borderInsets, Icon tileIcon)Creates a matte border with the specified insets and tile icon.MatteBorder(Icon tileIcon)Creates a matte border with the specified tile icon. -
Uses of Icon in javax.swing.colorchooser
Methods in javax.swing.colorchooser that return Icon Modifier and Type Method Description abstract IconAbstractColorChooserPanel. getLargeDisplayIcon()Returns the large display icon for the panel.abstract IconAbstractColorChooserPanel. getSmallDisplayIcon()Returns the small display icon for the panel. -
Uses of Icon in javax.swing.filechooser
Methods in javax.swing.filechooser that return Icon Modifier and Type Method Description IconFileView. getIcon(File f)The icon that represents this file in theJFileChooser.IconFileSystemView. getSystemIcon(File f)Icon for a file, directory, or folder as it would be displayed in a system file browser. -
Uses of Icon in javax.swing.plaf
Classes in javax.swing.plaf that implement Icon Modifier and Type Class Description classIconUIResourceAn Icon wrapper class which implements UIResource.Constructors in javax.swing.plaf with parameters of type Icon Constructor Description IconUIResource(Icon delegate)Creates a UIResource icon object which wraps an existing Icon instance.MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon)Constructs aMatteBorderUIResource.MatteBorderUIResource(Icon tileIcon)Constructs aMatteBorderUIResource. -
Uses of Icon in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as Icon Modifier and Type Field Description protected IconBasicMenuItemUI. arrowIconThe arrow icon.protected IconBasicMenuItemUI. checkIconThe check icon.protected IconBasicInternalFrameTitlePane. closeIconThe close icon.protected IconBasicTreeUI. collapsedIconThe collapsed icon.protected IconBasicFileChooserUI. computerIconComputer iconprotected IconBasicFileChooserUI. detailsViewIconDetails view iconprotected IconBasicFileChooserUI. directoryIconDirectory iconprotected IconBasicTreeUI. expandedIconThe expanded icon.protected IconBasicFileChooserUI. fileIconFile iconprotected IconBasicFileChooserUI. floppyDriveIconFloppy drive iconprotected IconBasicFileChooserUI. hardDriveIconHard drive iconprotected IconBasicFileChooserUI. homeFolderIconHome folder iconprotected IconBasicRadioButtonUI. iconThe icon.protected IconBasicInternalFrameTitlePane. iconIconThe iconify icon.protected IconBasicFileChooserUI. listViewIconList view iconprotected IconBasicInternalFrameTitlePane. maxIconThe maximize icon.protected IconBasicInternalFrameTitlePane. minIconThe minimize icon.protected IconBasicFileChooserUI. newFolderIconNew folder iconprotected IconBasicFileChooserUI. upFolderIconUp folder iconprotected IconBasicFileChooserUI. viewMenuIconView menu iconFields in javax.swing.plaf.basic with type parameters of type Icon Modifier and Type Field Description protected Hashtable<File,Icon>BasicFileChooserUI.BasicFileView. iconCacheThe icon cacheMethods in javax.swing.plaf.basic that return Icon Modifier and Type Method Description static IconBasicIconFactory. createEmptyFrameIcon()Returns an empty frame icon.IconBasicFileChooserUI.BasicFileView. getCachedIcon(File f)Returns the cached icon for the file.static IconBasicIconFactory. getCheckBoxIcon()Returns a check box icon.static IconBasicIconFactory. getCheckBoxMenuItemIcon()Returns a check box menu item icon.IconBasicTreeUI. getCollapsedIcon()Returns the collapsed icon.IconBasicRadioButtonUI. getDefaultIcon()Returns the default icon.IconBasicTreeUI. getExpandedIcon()Returns the expanded icon.protected IconBasicOptionPaneUI. getIcon()Returns the icon from theJOptionPanethe receiver is providing the look and feel for, or the default icon as returned fromgetDefaultIcon.protected IconBasicTabbedPaneUI. getIconForTab(int tabIndex)Returns the icon for a tab.protected IconBasicOptionPaneUI. getIconForType(int messageType)Returns the icon to use for the passed in type.static IconBasicIconFactory. getMenuArrowIcon()Returns a menu arrow icon.static IconBasicIconFactory. getMenuItemArrowIcon()Returns a menu item arrow icon.static IconBasicIconFactory. getMenuItemCheckIcon()Returns a menu item check icon.static IconBasicIconFactory. getRadioButtonIcon()Returns a radio button icon.static IconBasicIconFactory. getRadioButtonMenuItemIcon()Returns a radio button menu item icon.Methods in javax.swing.plaf.basic with parameters of type Icon Modifier and Type Method Description voidBasicFileChooserUI.BasicFileView. cacheIcon(File f, Icon i)Caches an icon for a file.protected voidBasicTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)Draws theiconcentered at (x,y).protected DimensionBasicMenuItemUI. getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)Returns the preferred size of a menu item.protected StringBasicLabelUI. layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)Forwards the call to SwingUtilities.layoutCompoundLabel().protected voidBasicTabbedPaneUI. layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)Laysout a label.protected voidBasicTabbedPaneUI. paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)Paints an icon.protected voidBasicMenuItemUI. paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)Paints a menu item.voidBasicTreeUI. setCollapsedIcon(Icon newG)Sets the collapsed icon.voidBasicTreeUI. setExpandedIcon(Icon newG)Sets the expanded icon. -
Uses of Icon in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement Icon Modifier and Type Class Description classMetalCheckBoxIconCheckboxIcon implementation for OrganicCheckBoxUIclassMetalComboBoxIconThis utility class draws the horizontal bars which indicate a MetalComboBoxstatic classMetalIconFactory.FileIcon16Warning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.FolderIcon16Warning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.PaletteCloseIconDefines an icon for Palette closestatic classMetalIconFactory.TreeControlIconWarning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.TreeFolderIconWarning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.TreeLeafIconThe class represents a tree leaf icon.Fields in javax.swing.plaf.metal declared as Icon Modifier and Type Field Description protected IconMetalComboBoxButton. comboIconThe icon.protected static IconMetalSliderUI. horizThumbIconA default horizontal thumbIcon.protected IconMetalInternalFrameTitlePane. paletteCloseIconThe palette close icon.protected static IconMetalSliderUI. vertThumbIconA default vertical thumbIcon.Methods in javax.swing.plaf.metal that return Icon Modifier and Type Method Description static IconMetalIconFactory. getCheckBoxIcon()Returns a checkbox icon.static IconMetalIconFactory. getCheckBoxMenuItemIcon()Returns an icon to be used byJCheckBoxMenuItem.IconMetalComboBoxButton. getComboIcon()Returns the icon of theJComboBox.IconMetalLookAndFeel. getDisabledIcon(JComponent component, Icon icon)Returns anIconwith a disabled appearance.IconMetalLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)Returns anIconfor use by disabled components that are also selected.static IconMetalIconFactory. getFileChooserDetailViewIcon()Returns the instance ofFileChooserDetailViewIcon.static IconMetalIconFactory. getFileChooserHomeFolderIcon()Returns the instance ofFileChooserHomeFolderIcon.static IconMetalIconFactory. getFileChooserListViewIcon()Returns the instance ofFileChooserListViewIcon.static IconMetalIconFactory. getFileChooserNewFolderIcon()Returns the instance ofFileChooserNewFolderIcon.static IconMetalIconFactory. getFileChooserUpFolderIcon()Returns the instance ofFileChooserUpFolderIcon.static IconMetalIconFactory. getHorizontalSliderThumbIcon()Returns a thumb icon to be used by horizontal slider.static IconMetalIconFactory. getInternalFrameAltMaximizeIcon(int size)Constructs a new instance ofInternalFrameAltMaximizeIcon.static IconMetalIconFactory. getInternalFrameCloseIcon(int size)Constructs a new instance ofInternalFrameCloseIcon.static IconMetalIconFactory. getInternalFrameDefaultMenuIcon()Returns the instance ofInternalFrameDefaultMenuIcon.static IconMetalIconFactory. getInternalFrameMaximizeIcon(int size)Constructs a new instance ofInternalFrameMaximizeIcon.static IconMetalIconFactory. getInternalFrameMinimizeIcon(int size)Constructs a new instance ofInternalFrameMinimizeIcon.static IconMetalIconFactory. getMenuArrowIcon()Returns an icon to be used byJMenu.static IconMetalIconFactory. getMenuItemArrowIcon()Returns an icon to be used byJMenuItem.static IconMetalIconFactory. getMenuItemCheckIcon()Returns an icon to be used byJCheckBoxMenuItem.static IconMetalIconFactory. getRadioButtonIcon()Returns the instance ofRadioButtonIcon.static IconMetalIconFactory. getRadioButtonMenuItemIcon()Returns an icon to be used byJRadioButtonMenuItem.static IconMetalIconFactory. getTreeComputerIcon()Returns the instance ofTreeComputerIcon.static IconMetalIconFactory. getTreeControlIcon(boolean isCollapsed)Constructs a new instance ofTreeControlIcon.static IconMetalIconFactory. getTreeFloppyDriveIcon()Returns the instance ofTreeFloppyDriveIcon.static IconMetalIconFactory. getTreeFolderIcon()Constructs a new instance ofTreeFolderIcon.static IconMetalIconFactory. getTreeHardDriveIcon()Returns the instance ofTreeHardDriveIcon.static IconMetalIconFactory. getTreeLeafIcon()Constructs a new instance ofTreeLeafIcon.static IconMetalIconFactory. getVerticalSliderThumbIcon()Returns a thumb icon to be used by vertical slider.Methods in javax.swing.plaf.metal with parameters of type Icon Modifier and Type Method Description IconMetalLookAndFeel. getDisabledIcon(JComponent component, Icon icon)Returns anIconwith a disabled appearance.IconMetalLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)Returns anIconfor use by disabled components that are also selected.voidMetalComboBoxButton. setComboIcon(Icon i)Sets the icon of theJComboBox.Constructors in javax.swing.plaf.metal with parameters of type Icon Constructor Description MetalComboBoxButton(JComboBox<Object> cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList<Object> list)Constructs a new instance ofMetalComboBoxButton.MetalComboBoxButton(JComboBox<Object> cb, Icon i, CellRendererPane pane, JList<Object> list)Constructs a new instance ofMetalComboBoxButton. -
Uses of Icon in javax.swing.plaf.synth
Subinterfaces of Icon in javax.swing.plaf.synth Modifier and Type Interface Description interfaceSynthIconAn icon that is passed aSynthContext.Methods in javax.swing.plaf.synth that return Icon Modifier and Type Method Description protected IconSynthButtonUI. getDefaultIcon(AbstractButton b)Returns the default icon.protected IconSynthButtonUI. getIcon(AbstractButton b)Returns the Icon to use for painting the button.IconSynthStyle. getIcon(SynthContext context, Object key)Convenience method to get a specific style property whose value is an Icon.protected IconSynthButtonUI. getSizingIcon(AbstractButton b)Returns the Icon used in calculating the preferred/minimum/maximum size.protected IconSynthRadioButtonUI. getSizingIcon(AbstractButton b)Returns the Icon used in calculating the preferred/minimum/maximum size.Methods in javax.swing.plaf.synth with parameters of type Icon Modifier and Type Method Description static intSynthGraphicsUtils. getIconHeight(Icon icon, SynthContext context)Returns the icon's height.static intSynthGraphicsUtils. getIconWidth(Icon icon, SynthContext context)Returns the icon's width.DimensionSynthGraphicsUtils. getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the maximum size needed to properly render an icon and text.DimensionSynthGraphicsUtils. getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the minimum size needed to properly render an icon and text.DimensionSynthGraphicsUtils. getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the preferred size needed to properly render an icon and text.StringSynthGraphicsUtils. layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)Lays out text and an icon returning, by reference, the location to place the icon and text.static voidSynthGraphicsUtils. paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height)Paints the icon.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)Paints an icon and text. -
Uses of Icon in javax.swing.text
Methods in javax.swing.text that return Icon Modifier and Type Method Description static IconStyleConstants. getIcon(AttributeSet a)Gets the icon setting from the attribute list.Methods in javax.swing.text with parameters of type Icon Modifier and Type Method Description static voidStyleConstants. setIcon(MutableAttributeSet a, Icon c)Sets the icon attribute. -
Uses of Icon in javax.swing.text.html
Methods in javax.swing.text.html that return Icon Modifier and Type Method Description IconImageView. getLoadingImageIcon()Returns the icon to use while in the process of loading the image.IconImageView. getNoImageIcon()Returns the icon to use if the image could not be found. -
Uses of Icon in javax.swing.tree
Fields in javax.swing.tree declared as Icon Modifier and Type Field Description protected IconDefaultTreeCellRenderer. closedIconIcon used to show non-leaf nodes that aren't expanded.protected IconDefaultTreeCellEditor. editingIconIcon to use when editing.protected IconDefaultTreeCellRenderer. leafIconIcon used to show leaf nodes.protected IconDefaultTreeCellRenderer. openIconIcon used to show non-leaf nodes that are expanded.Methods in javax.swing.tree that return Icon Modifier and Type Method Description IconDefaultTreeCellRenderer. getClosedIcon()Returns the icon used to represent non-leaf nodes that are not expanded.IconDefaultTreeCellRenderer. getDefaultClosedIcon()Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded.IconDefaultTreeCellRenderer. getDefaultLeafIcon()Returns the default icon, for the current laf, that is used to represent leaf nodes.IconDefaultTreeCellRenderer. getDefaultOpenIcon()Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded.IconDefaultTreeCellRenderer. getLeafIcon()Returns the icon used to represent leaf nodes.IconDefaultTreeCellRenderer. getOpenIcon()Returns the icon used to represent non-leaf nodes that are expanded.Methods in javax.swing.tree with parameters of type Icon Modifier and Type Method Description voidDefaultTreeCellRenderer. setClosedIcon(Icon newIcon)Sets the icon used to represent non-leaf nodes that are not expanded.voidDefaultTreeCellRenderer. setLeafIcon(Icon newIcon)Sets the icon used to represent leaf nodes.voidDefaultTreeCellRenderer. setOpenIcon(Icon newIcon)Sets the icon used to represent non-leaf nodes that are expanded.
-