public interface javax.swing
Icon


Show All Login
Java SE 6
  
Implemented by: IconUIResource, ImageIcon, MetalCheckBoxIcon, MetalComboBoxIcon, MetalIconFactory.FileIcon16, MetalIconFactory.FolderIcon16, MetalIconFactory.PaletteCloseIcon, MetalIconFactory.TreeControlIcon
Details
A small fixed size picture, typically used to decorate components.
See also javax.swing.ImageIcon

Methods
public void paintIcon(Component c, Graphics g, int x, int y)
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

Properties
public int getIconHeight() Details
Returns the icon's height.
returnan int specifying the fixed height of the icon.
public int getIconWidth() Details
Returns the icon's width.
returnan int specifying the fixed width of the icon.