title: Can I call ActionPerformed method from an Event Handler class for JButton?
body: <p>I have a JButton titled "select"
  In the class that creates that JButton and other classes, I want to use an if condition with ActionPerformed method.</p>
  
  <p>Something like(pseudo-code)</p>
  
  <pre><code>if(_selectListener.actionPerformed(ActionEvent)) { //i.e., if select Button is clicked,
      //do something
  }
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>I want to call this method because I have to handle a situation in which a player should be able to choose something by clicking "select" button, or another "scroll" button, and I want to control it using something similar to a bunch of if statements like the one above.</p>
  
  <p>If it is possible, what is the syntax for it? What is the argument ActionEvent?
  Thank you!</p>