public void resetTheModel ( ) { this . setRowCount ( START_ROWS ) ; // Theoretical EOF value for table scroller (Actual when known). m_iLastRecord = RECORD_UNKNOWN ; // When EOF is known m_iLargestValidRecord = - 1 ; this . setCurrentRow ( - 1 ) ; m_iCurrentLockedRowIndex = - 1 ; this . fireTableChanged ( new TableModelEvent ( this ) ) ; // Entire table changed }
The underlying query changed reset the model .