GUI Commands 2.0 has arrived! Find out what's new and improved.
Command Listeners

I originally added CommandListeners as a somewhat flawed attempt at solving a synchronization issue.  But having gone to the effort of adding them (not that much really), I decided to leave them there.  They follow the standard Swing listener pattern and allow interested parties to be notified both before and after and command fires.

   myActionCommand.addCommandListener(new CommandListener()
   {
      public void beforeExecute(CommandEvent e)
      {
      	System.out.println("beforeExecute: " + e.getCommand().getId());
      }
      
      public void afterExecute(CommandEvent e)
      {	
      	System.out.println("afterExecute: " + e.getCommand().getId());
      }
   });