awt buttons
I am a student and learning java. I have written a program for a coursework, it includes 2 buttons (Submit & Reset). I would like the submit button to have 2 possible course of action depending on a checkBoxGroup button being selected.
I have tried to write an if...
if(cbg.equals(false)
.....setText("Error");
else
.....setText("submitted");
I have found through trial and error that this is wrong, can anyone point me in the right direction?

