title: Two events on a button
body: <p>How can I make more than one event on a button?</p>
  
  <pre><code>public JButton getNumero1() {
      numero1Button = new JButton();
      numero1Button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ic_images/bt_n1.png")));
      ActionListener monitorador = new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
  
              entradaNumero1.setText(("1"));
              entradaNumero1.setEnabled(false);
  
              entradaNumero2.setText(("2"));
              entradaNumero2.setEnabled(false);
  
  
          }
      };
  
      numero1Button.addActionListener(monitorador);
      return numero1Button;
  }
  </code></pre>
  
  <p>I want to do with the first being a JTextField, and then another!</p>
  
  <p>Thank you!</p>