Declare an ActionEvent member variable 'previousEvent' and set it to the ActionListener event at the end of the actionPerformed method. It will then be available when handling the next event....