javax.swing.plaf.metal

Class MetalBorders.ScrollPaneBorder

public static class MetalBorders.ScrollPaneBorder extends AbstractBorder implements UIResource

A border for {@link JScrollPane} components.
Constructor Summary
ScrollPaneBorder()
Constructs a new ScrollPaneBorder.
Method Summary
InsetsgetBorderInsets(Component c)
Returns the insets of the border for the Component c.
voidpaintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the border.

Constructor Detail

ScrollPaneBorder

public ScrollPaneBorder()
Constructs a new ScrollPaneBorder.

Method Detail

getBorderInsets

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

Parameters: c the Component for which we return the border insets

paintBorder

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

Parameters: c the Component for which the border is painted g the Graphics context x the X coordinate of the upper left corner of the border y the Y coordinate of the upper left corner of the border w the width of the border h the height of the border