title: Adding Action listener for buttons created by method
body: <p>Ok if i have the following code:</p>
  
  <pre><code>protected void makebutton(String name){
  
           JButton button = new JButton(name);
  
           mypanel.add(button);
       }
  </code></pre>
  
  <p>then: </p>
  
  <pre><code>makebutton("Button1");
  makebutton("Button2");
  makebutton("Button3");
  </code></pre>
  
  <p>How can i add ActionListener to them. Which name do I use for ActionListener, tried many combination but no success. </p>