javax.swing.plaf.metal
Class MetalBorders.RolloverButtonBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.metal.MetalBorders.ButtonBorder
javax.swing.plaf.metal.MetalBorders.RolloverButtonBorder
- All Implemented Interfaces:
- Serializable, Border, UIResource
- Enclosing class:
- MetalBorders
public static class MetalBorders.RolloverButtonBorder
- extends MetalBorders.ButtonBorder
A button border that is only visible when the mouse pointer is within
the button's bounds.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalBorders.RolloverButtonBorder
public MetalBorders.RolloverButtonBorder()
- Creates a new border instance.
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
- Paints the border.
- Specified by:
paintBorder in interface Border- Overrides:
paintBorder in class MetalBorders.ButtonBorder
- Parameters:
c - the component.g - the graphics device.x - the x-coordinate.y - the y-coordinate.w - the width.h - the height.