javax.swing.plaf.metal
Class MetalBorders.OptionDialogBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.plaf.metal.MetalBorders.OptionDialogBorder
All Implemented Interfaces:
Serializable, Border, UIResource
Enclosing class:
MetalBorders

public static class MetalBorders.OptionDialogBorder
extends AbstractBorder
implements UIResource

A border used for JInternalFrame components that are presented as dialogs (by the JOptionPane class).

See Also:
Serialized Form

Constructor Summary
MetalBorders.OptionDialogBorder()
          Creates a new border instance.
 
Method Summary
 Insets getBorderInsets(Component c)
          Returns the border insets.
 Insets getBorderInsets(Component c, Insets newInsets)
          Returns the border insets.
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          Paints the border for the specified component.
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalBorders.OptionDialogBorder

public MetalBorders.OptionDialogBorder()
Creates a new border instance.

Method Detail

getBorderInsets

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

Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder
Parameters:
c - the component (ignored).
Returns:
The border insets.
See Also:
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)

getBorderInsets

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

Overrides:
getBorderInsets in class AbstractBorder
Parameters:
c - the component (ignored).
newInsets - an instance that will be overwritten and returned as the result (null not permitted).
Returns:
The border insets.
See Also:
AbstractBorder.getBorderInsets(Component)

paintBorder

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

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder
Parameters:
c - the component.
g - the graphics device.
x - the x-coordinate.
y - the y-coordinate.
w - the width.
h - the height.