javax.swing.plaf.metal

Class MetalComboBoxIcon

public class MetalComboBoxIcon extends Object implements Icon, Serializable

An icon used by the {@link MetalComboBoxUI} class.
Constructor Summary
MetalComboBoxIcon()
Creates a new icon.
Method Summary
intgetIconHeight()
Returns the icon height, which for this icon is 5 pixels.
intgetIconWidth()
Returns the icon width, which for this icon is 10 pixels.
voidpaintIcon(Component c, Graphics g, int x, int y)
Paints the icon at the location (x, y).

Constructor Detail

MetalComboBoxIcon

public MetalComboBoxIcon()
Creates a new icon.

Method Detail

getIconHeight

public int getIconHeight()
Returns the icon height, which for this icon is 5 pixels.

Returns: 5.

getIconWidth

public int getIconWidth()
Returns the icon width, which for this icon is 10 pixels.

Returns: 10.

paintIcon

public void paintIcon(Component c, Graphics g, int x, int y)
Paints the icon at the location (x, y).

Parameters: c the combo box (ignored here). g the graphics device. x the x coordinate. y the y coordinate.