javax.swing.plaf.metal

Class MetalBorders.TableHeaderBorder

public static class MetalBorders.TableHeaderBorder extends AbstractBorder

A border for table header cells.

Since: 1.3

Field Summary
protected InsetseditorBorderInsets
The insets of this border.
Constructor Summary
TableHeaderBorder()
Creates a new instance of TableHeaderBorder.
Method Summary
InsetsgetBorderInsets(Component c)
Return the insets of this border.
voidpaintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the border.

Field Detail

editorBorderInsets

protected Insets editorBorderInsets
The insets of this border.

Constructor Detail

TableHeaderBorder

public TableHeaderBorder()
Creates a new instance of TableHeaderBorder.

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Return the insets of this border.

Returns: the insets of this border

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 to paint the border g the graphics context to use x the x cooridinate of the border rectangle y the y cooridinate of the border rectangle w the width of the border rectangle h the height of the border rectangle