| javax.swing.Icon
All known Subclasses: javax.swing.plaf.metal.MetalBumps, javax.swing.ImageIcon, javax.swing.plaf.metal.MetalCheckBoxIcon, javax.swing.plaf.IconUIResource, javax.swing.plaf.metal.MetalComboBoxIcon,
Icon | public interface Icon (Code) | | A small fixed size picture, typically used to decorate components.
See Also: ImageIcon |
getIconHeight | int getIconHeight()(Code) | | Returns the icon's height.
an int specifying the fixed height of the icon. |
getIconWidth | int getIconWidth()(Code) | | Returns the icon's width.
an int specifying the fixed width of the icon. |
paintIcon | void paintIcon(Component c, Graphics g, int x, int y)(Code) | | 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.
|
|
|