void (PropertyChangeEvent evt) { TableModel oldModel = (TableModel)evt.getOldValue(); if (oldModel != null) { oldModel.removeTableModelListener(myTableModelListener); } TableModel newModel = (TableModel)evt.getNewValue(); if (newModel != null) { newModel.addTableModelListener(myTableModelListener); } if (oldModel != null) { fireUIChanged(); } }