public void addCommandListener(String formName,ActionListener l){
  if (localCommandListeners == null) {
    localCommandListeners=new Hashtable();
  }
  EventDispatcher d=(EventDispatcher)localCommandListeners.get(formName);
  if (d == null) {
    d=new EventDispatcher();
    localCommandListeners.put(formName,d);
  }
  d.addListener(l);
}

public void addCommandListener ( String formName , ActionListener l ) { if ( localCommandListeners == null ) { localCommandListeners = new Hashtable ( ) ; } EventDispatcher d = ( EventDispatcher ) localCommandListeners . get ( formName ) ; if ( d == null ) { d = new EventDispatcher ( ) ; localCommandListeners . put ( formName , d ) ; } d . addListener ( l ) ; }
adds a command listener to be invoked for commands on a specific form
