javax.swing.plaf.basic

Class BasicIconFactory

public class BasicIconFactory extends Object implements Serializable

Creates icons for the {@link BasicLookAndFeel}.
Method Summary
static IconcreateEmptyFrameIcon()
static IcongetCheckBoxIcon()
Returns an icon for CheckBoxes in the BasicLookAndFeel.
static IcongetCheckBoxMenuItemIcon()
Creates and returns an icon used when rendering {@link JCheckBoxMenuItem} components.
static IcongetMenuArrowIcon()
Returns a new instance of a 4 x 8 icon showing a small black triangle that points to the right.
static IcongetMenuItemArrowIcon()
static IcongetMenuItemCheckIcon()
static IcongetRadioButtonIcon()
Returns an icon for RadioButtons in the BasicLookAndFeel.
static IcongetRadioButtonMenuItemIcon()

Method Detail

createEmptyFrameIcon

public static Icon createEmptyFrameIcon()

getCheckBoxIcon

public static Icon getCheckBoxIcon()
Returns an icon for CheckBoxes in the BasicLookAndFeel. CheckBox icons in the Basic L&F are empty and have a size of 13x13 pixels. This method returns a shared single instance of this icon.

Returns: an icon for CheckBoxes in the BasicLookAndFeel

getCheckBoxMenuItemIcon

public static Icon getCheckBoxMenuItemIcon()
Creates and returns an icon used when rendering {@link JCheckBoxMenuItem} components.

Returns: An icon.

getMenuArrowIcon

public static Icon getMenuArrowIcon()
Returns a new instance of a 4 x 8 icon showing a small black triangle that points to the right. This is displayed in menu items that have a sub menu.

Returns: The icon.

getMenuItemArrowIcon

public static Icon getMenuItemArrowIcon()

getMenuItemCheckIcon

public static Icon getMenuItemCheckIcon()

getRadioButtonIcon

public static Icon getRadioButtonIcon()
Returns an icon for RadioButtons in the BasicLookAndFeel. RadioButton icons in the Basic L&F are empty and have a size of 13x13 pixels. This method returns a shared single instance of this icon.

Returns: an icon for RadioButtons in the BasicLookAndFeel

getRadioButtonMenuItemIcon

public static Icon getRadioButtonMenuItemIcon()