If you want to immediately jump to the code in the listener, rather than trying to create new ActionEvent's and dispatching them, perhaps you could strip out the code from within the actionPerformed...