if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(minTotalColumnWidth, table.getRowCount()*table.getRowHeight());
return new Dimension(minTotalColumnWidth, getHeight());
  public Dimension getMinimumSize(JComponent comp)   {    int minTotalColumnWidth = 0;    for (int i = 0; i < table.getColumnCount(); i++)      minTotalColumnWidth += table.getColumnModel().getColumn(i).getMinWidth();    if (minTotalColumnWidth == 0 || table.getRowCount() == 0)      return null;    return new Dimension(minTotalColumnWidth, table.getRowCount()*table.getRowHeight());  }