int height = table.getRowCount() * table.getRowHeight();
int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin());
  public Dimension getPreferredSize(JComponent comp)   {    int width = table.getColumnModel().getTotalColumnWidth();    int height = table.getRowCount() * table.getRowHeight();    return new Dimension(width, height);  }