@Override public void valueChanged(@Nullable ListSelectionEvent event){
  if (event == null || event.getValueIsAdjusting() || myModel.isUpdating()) {
    return;
  }
  myLastSelectedImage=myTable.getSelectedObject();
  notifySelectionChange();
}

@ Override public void valueChanged ( @ Nullable ListSelectionEvent event ) { if ( event == null || event . getValueIsAdjusting ( ) || myModel . isUpdating ( ) ) { return ; } myLastSelectedImage = myTable . getSelectedObject ( ) ; notifySelectionChange ( ) ; }
this class implements the table selection interface and passes the selection events on to its listeners .
