private void justifyRows ( final int from , final int to ) { // Sometimes the DefaultTableModel is subclassed // instead of the AbstractTableModel by mistake. // Set the number of rows for the case when getRowCount // is overridden. this . dataVector . setSize ( getRowCount ( ) ) ; for ( int i = from ; i < to ; i ++ ) { if ( this . dataVector . elementAt ( i ) == null ) { this . dataVector . setElementAt ( new Vector ( ) , i ) ; } // ((Vector)dataVector.elementAt(i)).setSize(getColumnCount()); } }
Justify rows .