A la hora de querer meterle un evento por ejemplo a un boton me sale lo siguiente: Mi pregunta es...¿Donde puedo ponerle los comandos necesarios y como?porque hay partes que no son modificables ya que no permite.O SI No diganme por favor donde puedo encontrar un buen tutorial sobre mis dudas,gracias.

/*
* ese1.java
*
* Created on 12 de enero de 2007, 04:34 AM
*/
/**
*
* @author X
*/
public class ese1 extends javax.swing.JFrame {
/** Creates new form ese1 */
public ese1() {
initComponents();
}
private void initComponents() { <-----------------de qui hasta la otra linea lo hice yo.
buttonGroup1 = new javax.swing.ButtonGroup();
Vector1 = new javax.swing.JLabel();
Vector2 = new javax.swing.JLabel();<-------------------------------- Todo esto se le agregue yo,me explicaron solo eso pero no entendi.
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
jButton1 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);
jButton1.setText("Prueba");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(layout.createSequentialGroup()
.add(162, 162, 162)
.add(jButton1)
.addContainerGap(171, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addContainerGap(248, Short.MAX_VALUE)
.add(jButton1)
.add(29, 29, 29))
);
pack();
}// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ese1().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
// End of variables declaration
}