g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bounds.y);
g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1);
    public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)    {      Rectangle bounds = getBounds();      Color saved = g.getColor();      g.setColor(highlight);      g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height);      g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bounds.y);      g.setColor(shadow);      g.drawLine(bounds.x + 1, bounds.y + bounds.height - 1,                 bounds.x + bounds.width - 1, bounds.y + bounds.height - 1);      g.drawLine(bounds.x + bounds.width - 1, bounds.y + 1,                 bounds.x + bounds.width - 1, bounds.y + bounds.height - 1);      g.setColor(darkShadow);      g.drawLine(bounds.x, bounds.y + bounds.height, bounds.x + bounds.width,                 bounds.y + bounds.height);      g.drawLine(bounds.x + bounds.width, bounds.y, bounds.x + bounds.width,                 bounds.y + bounds.height);      g.setColor(saved);    }