@Override
  public Dimension getMaximumSize(JComponent c) {
    int thickness = getThickness();
    return new Dimension(thickness, thickness);
  }
@Override
  public Dimension getMaximumSize(JComponent c)