public void removeTableModelListener ( TableModelListener l ) { try { this . updateIfNewRow ( - 1 ) ; // Update any locked record. } catch ( DBException ex ) { ex . printStackTrace ( ) ; } super . removeTableModelListener ( l ) ; }
This is called when the model is no longer need by the JTable so update any current record .