title: Understanding button/mouse listener in Netbeans GUI generated code
body: <p>can any tell me what this part of code is doing?</p>
  
  <pre><code> jButton1.addMouseListener(new java.awt.event.MouseAdapter() 
                             {
                   public void mouseClicked(java.awt.event.MouseEvent evt) 
                                   {
                       jButton1MouseClicked(evt);
                   }
                     });
  </code></pre>
  
  <p>why are there methods in the parameter for the method addMouseListener? can some one explain in details? im using netbeans and this is code generated.</p>