As far as I can see you only accumulate scores at the ok button click. How about changing the design a bit ?
Code:
/Catagory #1 -- $100
if (objSource == btn100Cat1)
{
sndTheme.play ();
lblQLine1.setText ("What is the capitol of Canada?");
lblAnsA.setText ("A: Ottawa");
lblAnsB.setText ("B: Toronto");
lblAnsC.setText ("C: Vancouver");
btn100Cat1.setEnabled (false);
btnOK.setEnabled (true);
accumulateScore (optA.getState (), 100)
}
.
.
.
. private int accumulateScore(boolean win, int amount) {
fltScore += (win) ? amount : -amount;
}
You should also consider a table driven approach when
you are dealing w. these armies of buttons.
Bookmarks