title: Extending ActionEvent? A custom event, without a custom listener?
body: <p>I've 2 Objects I'm concerned with at the moment: a controller and a class creating an event.</p>
  
  <p>I've got it all working with an ActionListener variable in the source class, set by an anonymous ActionListener object and method from the controller.</p>
  
  <p>But I need access to data from the source class back in the controller. I'm capable of extending EventListener and using a custom EventObject, but that seems a bit overkill for one bit of data.</p>
  
  <p>Is there an easy way to just extend ActionEvent and create an extra variable that I can access in the Listener's actionPerformed() method? ActionEvent's constructor is just confusing me. </p>
  
  <pre><code>public class NotesEvent extends ActionEvent{
      public NotesEvent(Object source, int id, String command){
          super(source, id, command);
      }
  }
  </code></pre>
  
  <p>I don't know what to pass for the 'identifier' when instantiating the event.</p>
  
  <p>Maybe I've missed something simple - I've only ever really learned to do this the long way round with custom classes.</p>
  
  <p>Any help would be appreciated</p>