void (Component c, Graphics g, int x, int y, int width, int height) { Color oldColor = g.getColor(); g.setColor(getLineColor()); if ((mySideMask & LEFT) != 0) g.fillRect(x, y, thickness, height); if ((mySideMask & TOP) != 0) g.fillRect(x, y, width, thickness); if ((mySideMask & RIGHT) != 0) g.fillRect(x + width - thickness, y, thickness, height); if ((mySideMask & BOTTOM) != 0) g.fillRect(x, y + height - thickness, width, thickness); g.setColor(oldColor); }