javax.swing.plaf.metal
Class MetalBorders.TextFieldBorder

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

public static class MetalBorders.TextFieldBorder
extends MetalBorders.Flush3DBorder
implements UIResource

A border used for the JTextField component.

See Also:
Serialized Form

Constructor Summary
MetalBorders.TextFieldBorder()
          Creates a new border instance.
 
Method Summary
 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.plaf.metal.MetalBorders.Flush3DBorder
getBorderInsets, getBorderInsets
 
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.TextFieldBorder

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

Method Detail

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 MetalBorders.Flush3DBorder
Parameters:
c - the component (ignored).
g - the graphics device.
x - the x-coordinate.
y - the y-coordinate.
w - the width.
h - the height.