public void addCommandListener(ActionListener l){
  if (globalCommandListeners == null) {
    globalCommandListeners=new EventDispatcher();
  }
  globalCommandListeners.addListener(l);
}

public void addCommandListener ( ActionListener l ) { if ( globalCommandListeners == null ) { globalCommandListeners = new EventDispatcher ( ) ; } globalCommandListeners . addListener ( l ) ; }
adds a command listener that would be bound to all forms in the gui seamlessly
