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 JButton components.

This Border implementation can handle only instances of 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 JToolBar.

static classMetalBorders.Flush3DBorder
A simple 3D border.
static classMetalBorders.InternalFrameBorder
A border used for the JInternalFrame component.
static classMetalBorders.MenuBarBorder
A border used for JMenuBar components.
static classMetalBorders.MenuItemBorder
A border used for JMenu and JMenuItem components.
static classMetalBorders.OptionDialogBorder
A border used for JInternalFrame components that are presented as dialogs (by the JOptionPane class).
static classMetalBorders.PaletteBorder
A border used for a 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 JScrollPane components.
static classMetalBorders.TableHeaderBorder
A border for table header cells.
static classMetalBorders.TextFieldBorder
A border used for the JTextField component.
static classMetalBorders.ToggleButtonBorder
A border used for the JToggleButton component.
static classMetalBorders.ToolBarBorder
A border used for the 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 JInternalFrame when it is in the iconified state.
static BordergetTextBorder()
Returns the border that is used for text components (except text fields, which use MetalBorders.
static BordergetTextFieldBorder()
Returns a border for use by the JTextField component.
static BordergetToggleButtonBorder()
Returns a border for use with 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 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 MetalBorders.

Returns: the border that is used for text components

Since: 1.3

getTextFieldBorder

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

Returns: A border.

Since: 1.3

getToggleButtonBorder

public static Border getToggleButtonBorder()
Returns a border for use with JToggleButton components.

Returns: A border.

Since: 1.3