I want to know why this code is giving me this problem, keep in mind that it has already worked in an earlier Form of the same project but it refuses to work here.
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt){
if (jCheckBox1.isSelected()== true)
jCheckBox1.equals(56);
if (jCheckBox2.isSelected()== true)
jCheckBox2.equals(50);
if (jCheckBox3.isSelected()== true)
jCheckBox3.equals(56);
if (jCheckBox4.isSelected()== true)
jCheckBox4.equals(56);
if (jCheckBox5.isSelected()== true)
jCheckBox5.equals(56);
if (jCheckBox6.isSelected()== true)
jCheckBox6.equals(56);
new Form6().setVisible(true);
else
if (jCheckBox1.isSelected()== false)
jCheckBox1.equals(0);
if (jCheckBox2.isSelected()== false)
jCheckBox2.equals(0);
if (jCheckBox3.isSelected()== false)
jCheckBox3.equals(0);
if (jCheckBox4.isSelected()== false)
jCheckBox4.equals(0);
if (jCheckBox5.isSelected()== false)
jCheckBox5.equals(0);
if (jCheckBox6.isSelected()== false)
jCheckBox6.equals(0);
JOptionPane.showMessageDialog(this, "Please Choose An Option and Try Again");
And if there is any way for me to calculate jCheckBox
values using a different method then I'm very eager to learn. My Professor says he knows almost everything about java netbeans and stuff but so far he's not much of a help.