public void actionPerformed(java.awt.event.ActionEvent e){
  if (mouseDelegator == null) {
    return;
  }
 else {
    mouseDelegator.setActiveMouseModeWithID(e.getActionCommand());
  }
}

public void actionPerformed ( java . awt . event . ActionEvent e ) { if ( mouseDelegator == null ) { return ; } else { mouseDelegator . setActiveMouseModeWithID ( e . getActionCommand ( ) ) ; } }
actionperformed - handle the mouse clicks on the button ( s )
