There is one and only 1 if...else statement in there:


if (jRadioButton1.isSelected())
{ jLabel2.setText("right");}
else jLabel2.setText("wrong");

and there is nothing wrong...