public void addComponentSelectionListener(final ComponentSelectionListener l){
  myListenerList.add(ComponentSelectionListener.class,l);
}

public void addComponentSelectionListener ( final ComponentSelectionListener l ) { myListenerList . add ( ComponentSelectionListener . class , l ) ; }
adds specified selection listener . this listener gets notification each time the selection in the component the changes .
