if (c instanceof JTree) return ((JTree) c).getPreferredSize(); return new Dimension();
return getPreferredSize(c);
  public Dimension getMaximumSize(JComponent c)  {    if (c instanceof JTree)      return ((JTree) c).getPreferredSize();    return new Dimension();  }