title: adding action listener to a button in netbeans
body: <p>How to add an action listener to a button in netbeans</p>
  
  <p>I tried to do that, but I don't know how</p>
  
  <pre><code>button.addactionlistener(null);
  </code></pre>