@Override
  public Dimension getPreferredSize(JComponent c) {
    Dimension size = super.getPreferredSize(c);
    return getSizeWithButtons(c.getInsets(), size);
  }
@Override
  public Dimension getPreferredSize(JComponent c)