title: How to assign one Action Listener to a couple of buttons?
body: <pre><code>button1.addActionListener(new ActionListener(){
  
              @Override
              public void actionPerformed(ActionEvent ae) {
                  exite.setEnabled(true);
              }
  
          });
  
  button2.addActionListener(new ActionListener(){
  
              @Override
              public void actionPerformed(ActionEvent ae) {
                  exite.setEnabled(true);
              }
  
          });
  
  
  button3.addActionListener(new ActionListener(){
  
              @Override
              public void actionPerformed(ActionEvent ae) {
                  exite.setEnabled(true);
              }
  
          });
  </code></pre>
  
  <p>I have 3 buttons here, but they are doing same thing. It takes some space in code. How can I group them all and assigned to one ActionListener?</p>
  
  <p>Something like this. I don't know how it should be.</p>
  
  <pre><code>button1.button2.button3.addActionListener(new ActionListener(){
  
              @Override
              public void actionPerformed(ActionEvent ae) {
                  exite.setEnabled(true);
              }
  
          });
  </code></pre>