g.setColor(MetalLookAndFeel.getControlShadow()); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y, x, y + h - 2); g.drawLine(x + 2, y + h - 2, x + w - 1, y + h - 2);
{ g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(0, 0, w - 1, 0); g.drawLine(0, 0, 0, h - 2); g.drawLine(0, h - 2, w - 1, h - 2); g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(1, 1, w - 1, 1); g.drawLine(1, 1, 1, h - 1); g.drawLine(1, h - 1, w - 1, h - 1);
    public void paintBorder(Component c, Graphics g, int x, int y, int w,         int h)    {         Color savedColor = g.getColor();      if (c.isEnabled())        g.setColor(MetalLookAndFeel.getControlDarkShadow());        else        g.setColor(MetalLookAndFeel.getControlShadow());      g.drawLine(x, y, x + w - 1, y);      g.drawLine(x, y, x, y + h - 2);      g.drawLine(x + 2, y + h - 2, x + w - 1, y + h - 2);      g.setColor(MetalLookAndFeel.getControl());      g.drawLine(x + 1, y + h - 2, x + 1, y + h - 2);      g.setColor(MetalLookAndFeel.getWhite());      g.drawLine(x, y + h - 1, x + w - 1, y + h - 1);      g.setColor(savedColor);    }