void (PropertyChangeEvent evt) { if (evt.getOldValue() != null) { ((ListSelectionModel)evt.getOldValue()).removeListSelectionListener(selectionListener); } if (evt.getNewValue() != null) { ((ListSelectionModel)evt.getNewValue()).addListSelectionListener(selectionListener); } }