javax.swing.plaf.metal

Class MetalBorders.ToggleButtonBorder

public static class MetalBorders.ToggleButtonBorder extends MetalBorders.ButtonBorder

A border used for the {@link JToggleButton} component.

Since: 1.3

Constructor Summary
ToggleButtonBorder()
Creates a new border instance.
Method Summary
voidpaintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the toggle button border.

Constructor Detail

ToggleButtonBorder

public ToggleButtonBorder()
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 toggle button border.

Parameters: c the component for which we paint the border g the Graphics context to use x the X coordinate of the upper left corner of c y the Y coordinate of the upper left corner of c w the width of c h the height of c