public void packRows(){
  if (!contentRepaintEnabled) {
    return;
  }
  impl.setRowHeight(defaultRowHeight);
  for (  Column column : columnsOrder) {
    if (column.isEditable()) {
      impl.setRowHeight(defaultEditableRowHeight);
      break;
    }
  }
  if (allColumnsAreInline()) {
    return;
  }
  int preferredRowHeight=-1;
  boolean equalsRowHeight=true;
  StopWatch sw=new Log4JStopWatch("DAT packRows " + id);
  for (int r=0; r < impl.getRowCount(); r++) {
    int h=getPreferredRowHeight(r);
    if (preferredRowHeight == -1) {
      preferredRowHeight=h;
    }
 else     if (preferredRowHeight != h) {
      equalsRowHeight=false;
    }
    if (impl.getRowHeight(r) != h) {
      impl.setRowHeight(r,h);
    }
  }
  if (equalsRowHeight && preferredRowHeight > 0) {
    impl.setRowHeight(preferredRowHeight);
  }
  sw.stop();
}

public void packRows ( ) { if ( ! contentRepaintEnabled ) { return ; } impl . setRowHeight ( defaultRowHeight ) ; for ( Column column : columnsOrder ) { if ( column . isEditable ( ) ) { impl . setRowHeight ( defaultEditableRowHeight ) ; break ; } } if ( allColumnsAreInline ( ) ) { return ; } int preferredRowHeight = - 1 ; boolean equalsRowHeight = true ; StopWatch sw = new Log4JStopWatch ( "DAT packRows " + id ) ; for ( int r = 0 ; r < impl . getRowCount ( ) ; r ++ ) { int h = getPreferredRowHeight ( r ) ; if ( preferredRowHeight == - 1 ) { preferredRowHeight = h ; } else if ( preferredRowHeight != h ) { equalsRowHeight = false ; } if ( impl . getRowHeight ( r ) != h ) { impl . setRowHeight ( r , h ) ; } } if ( equalsRowHeight && preferredRowHeight > 0 ) { impl . setRowHeight ( preferredRowHeight ) ; } sw . stop ( ) ; }
sets the height of each row into the preferred height of the tallest cell in that row .
