title: How to call different actionListeners?
body: <p>My program has one button, and the other one is a JTextField. The action listener for the button and the textfield are different. I'm using: </p>
  
  <blockquote>
    <p><code>textfield.addActionListener(this);<br>
       button.addActionListener(this);</code></p>
  </blockquote>
  
  <p>... inside my constructor.</p>
  
  <p>They both do the same actionListener. How can I call their respective methods?</p>