javax.swing.plaf.metal

Class MetalBorders

public class MetalBorders extends Object

A factory class that creates borders for the different Swing components.
Nested Class Summary
static classMetalBorders.ButtonBorder

A border used for {@link JButton} components.

This {@link Border} implementation can handle only instances of {@link AbstractButton} and their subclasses.

If the Metal Look and Feel's current theme is 'Ocean' the border will be painted with a special highlight when the mouse cursor if over the button (ie. the property rollover of the button's model is true) and is not a direct child of a {@link JToolBar}.

static classMetalBorders.Flush3DBorder
A simple 3D border.
static classMetalBorders.InternalFrameBorder
A border used for the {@link JInternalFrame} component.
static classMetalBorders.MenuBarBorder
A border used for {@link JMenuBar} components.
static classMetalBorders.MenuItemBorder
A border used for {@link JMenu} and {@link JMenuItem} components.
static classMetalBorders.OptionDialogBorder
A border used for {@link JInternalFrame} components that are presented as dialogs (by the {@link JOptionPane} class).
static classMetalBorders.PaletteBorder
A border used for a {@link JInternalFrame} when it is being used as a palette.
static classMetalBorders.PopupMenuBorder
A border implementation for popup menus.
static classMetalBorders.RolloverButtonBorder
A button border that is only visible when the mouse pointer is within the button's bounds.
static classMetalBorders.ScrollPaneBorder
A border for {@link JScrollPane} components.
static classMetalBorders.TableHeaderBorder
A border for table header cells.
static classMetalBorders.TextFieldBorder
A border used for the {@link JTextField} component.
static classMetalBorders.ToggleButtonBorder
A border used for the {@link JToggleButton} component.
static classMetalBorders.ToolBarBorder
A border used for the {@link JToolBar} component.
Method Summary
static BordergetButtonBorder()
Returns a border for Swing buttons in the Metal Look & Feel.
static BordergetDesktopIconBorder()
Returns a border instance that is used with a {@link JInternalFrame} when it is in the iconified state.
static BordergetTextBorder()
Returns the border that is used for text components (except text fields, which use {@link #getTextFieldBorder}.
static BordergetTextFieldBorder()
Returns a border for use by the {@link JTextField} component.
static BordergetToggleButtonBorder()
Returns a border for use with {@link JToggleButton} components.

Method Detail

getButtonBorder

public static Border getButtonBorder()
Returns a border for Swing buttons in the Metal Look & Feel.

Returns: a border for Swing buttons in the Metal Look & Feel

getDesktopIconBorder

public static Border getDesktopIconBorder()
Returns a border instance that is used with a {@link JInternalFrame} when it is in the iconified state.

Returns: A border.

Since: 1.3

getTextBorder

public static Border getTextBorder()
Returns the border that is used for text components (except text fields, which use {@link #getTextFieldBorder}.

Returns: the border that is used for text components

Since: 1.3

getTextFieldBorder

public static Border getTextFieldBorder()
Returns a border for use by the {@link JTextField} component.

Returns: A border.

Since: 1.3

getToggleButtonBorder

public static Border getToggleButtonBorder()
Returns a border for use with {@link JToggleButton} components.

Returns: A border.

Since: 1.3