@Override
 protected void layout() {
   Rectangle clientArea = getClientArea().getCopy();
   if (boolLabel.isVisible()) {
     Dimension labelSize = boolLabel.getPreferredSize();
     boolLabel.setBounds(
         new Rectangle(
             getLabelLocation(
                 clientArea.x + clientArea.width / 2 - labelSize.width / 2,
                 clientArea.y + clientArea.height / 2 - labelSize.height / 2),
             new Dimension(labelSize.width, labelSize.height)));
   }
   super.layout();
 }