void (Component c, Graphics g, int x, int y, int width, int height) { if (myInsets.top > 0) paintTopBottomBorder(g, x, y, width, myInsets.top, true); if (myInsets.bottom > 0) paintTopBottomBorder(g, x, y + height - myInsets.bottom, width, myInsets.bottom, false); }