Dimension min = getPreferredMinSize(); if (min == null) return new Dimension(); return min;
return preferredMinSize = getPreferredSize(c);
  public Dimension getMinimumSize(JComponent c)  {    Dimension min = getPreferredMinSize();     if (min == null)      return new Dimension();    return min;  }