hello people,
i've just started programming with Java in NetBeans
and now i'm trying to make a countmachine
but i don't know how to get further

the script must count 2 inserts
1 + 1 = 2
and show the result in another textfield, what has to be lock (no insert over here)
i make the code like this:

public class ED5_1 extends javax.swing.JFrame
{
public ED5_1()
{
initComponents();
}
private void initComponents()
{
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
id_invoerGetal1 = new javax.swing.JTextField();
id_invoerGetal2 = new javax.swing.JTextField();
id_Optellen = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
id_resultaat = new javax.swing.JTextField();
id_Modulus = new javax.swing.JButton();
id_Vermenigvuldigen = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);
jLabel1.setForeground(new java.awt.Color(0, 0, 255));
jLabel1.setText("Getal 1");

jLabel2.setForeground(new java.awt.Color(0, 0, 255));
jLabel2.setText("Getal 2");

id_invoerGetal1.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent evt)
{
id_invoerGetal1ActionPerformed(evt);
}
});

id_Optellen.setToolTipText("Getallen met elkaar optellen");
id_Optellen.setLabel("Optellen");

jLabel3.setFont(new java.awt.Font("MS Sans Serif", 1, 11));
jLabel3.setForeground(new java.awt.Color(0, 0, 255));
jLabel3.setText("Antwoord");

id_Modulus.setText("Modulus");
id_Modulus.setToolTipText("De rest na deling");

id_Vermenigvuldigen.setText("Vermenigvuldigen");
id_Vermenigvuldigen.setToolTipText("Getallen met elkaar vermenigvuldigen");

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(27, 27, 27)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
.add(jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
.add(jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
.add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
.add(id_invoerGetal1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
.add(id_invoerGetal2)
.add(id_resultaat))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED, 38, Short.MAX_VALUE)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
.add(id_Vermenigvuldigen, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(id_Modulus, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(id_Optellen, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(org.jdesktop.layout.GroupLayout.D EFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
.add(layout.createSequentialGroup()
.add(44, 44, 44)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.TRAILING)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
.add(id_invoerGetal1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(id_Optellen))
.add(jLabel1))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
.add(jLabel2)
.add(id_invoerGetal2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(id_Modulus))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
.add(id_Vermenigvuldigen)
.add(6, 6, 6)
.add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
.add(jLabel3)
.add(id_resultaat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addContainerGap(49, Short.MAX_VALUE))
);
pack();
}// </editor-fold>

private void id_invoerGetal1ActionPerformed(java.awt.event.Acti onEvent evt)
{
// TODO add your handling code here:
}

public static void main(String args[])
{
java.awt.EventQueue.invokeLater(new Runnable()
{
public void run()
{
new ED5_1().setVisible(true);
}
}
);

//String Optellen;
//Optellen = id_invoerGetal1.getText();
//id_resultaat.setText(Optellen);

}

private javax.swing.JButton id_Modulus;
private javax.swing.JButton id_Optellen;
private javax.swing.JButton id_Vermenigvuldigen;
private javax.swing.JTextField id_invoerGetal1;
private javax.swing.JTextField id_invoerGetal2;
private javax.swing.JTextField id_resultaat;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;

}






Can someone please help me?