javax.swing.plaf.metal

Class MetalBorders.OptionDialogBorder

public static class MetalBorders.OptionDialogBorder extends AbstractBorder implements UIResource

A border used for {@link JInternalFrame} components that are presented as dialogs (by the {@link JOptionPane} class).
Constructor Summary
OptionDialogBorder()
Creates a new border instance.
Method Summary
InsetsgetBorderInsets(Component c)
Returns the border insets.
InsetsgetBorderInsets(Component c, Insets newInsets)
Returns the border insets.
voidpaintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the border for the specified component.

Constructor Detail

OptionDialogBorder

public OptionDialogBorder()
Creates a new border instance.

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Returns the border insets.

Parameters: c the component (ignored).

Returns: The border insets.

getBorderInsets

public Insets getBorderInsets(Component c, Insets newInsets)
Returns the border insets.

Parameters: c the component (ignored).

Returns: The border insets.

paintBorder

public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the border for the specified component.

Parameters: c the component. g the graphics device. x the x-coordinate. y the y-coordinate. w the width. h the height.