protected void paintFigure(Graphics graphics) { label.setBounds( new Rectangle(bounds.x, bounds.y + bounds.height - labelHeight, bounds.width, labelHeight)); Rectangle rect = getBounds().getCopy(); rect.height--; rect.width--; graphics.drawRectangle(rect); }