UnifiedContentBorderpublic class UnifiedContentBorder extends AbstractBorder
Fields Summary |
---|
private static final Color | BORDER_TOP_COLOR1 | private static final Color | BORDER_BOTTOM_COLOR1 | private static final Color | BORDER_BOTTOM_COLOR2 |
Methods Summary |
---|
public java.awt.Insets | getBorderInsets(java.awt.Component component)
return new Insets(1, 0, 2, 0);
| public boolean | isBorderOpaque()
return true;
| public void | paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
g.setColor(BORDER_TOP_COLOR1);
g.drawLine(x, y, x + width, y);
g.setColor(BORDER_BOTTOM_COLOR1);
g.drawLine(x, y + height - 2, x + width, y + height - 2);
g.setColor(BORDER_BOTTOM_COLOR2);
g.drawLine(x, y + height - 1, x + width, y + height - 1);
|
|