code: public void removeTableModelListener(TableModelListener l)
      {
          try   {
              this.updateIfNewRow(-1);    // Update any locked record.
          } catch (DBException ex)    {
              ex.printStackTrace();
          }
          super.removeTableModelListener(l);
      }
docs: This is called when the model is no longer need by the JTable,
  so update any current record.
  @param l The table model listener to remove.