title: No reference to buttons created through array in actionListener()
body: <pre><code>public class buttonInitialization extends JFrame {
  
  public JButton[] button;
  
  public buttonInitialization() {
      setLayout(new FlowLayout());    
  
      JButton[] button = new JButton[2];
  
      button[0] = new JButton("");
      button[0].setText("dsadsa");
      button[0].addActionListener(new ActionListener() {
  
          @Override
          public void actionPerformed(ActionEvent arg0) {
  
                  button[0].setText("dsaadsdsa"); 
          }
  </code></pre>
  
  <p>I cannot access this <code>button[0]</code> in action listener. How can I do that???</p>