Gruess Gott, all!
I've implemented several ButtonGroups.
The first lot of JButtons in the first ButtonGroup is for selecting unique choices (one only).
At the very end, there are two JButtons, "accept" or "decline", on pressing one of these buttons, something happens.
The problem with my current code is this : once the conditions are fulfilled, even *before* the user clicks on the "accept" or "decline" button, something happens.
I'm currently using similar in concept to this :
Question:
Let the user select the choices in the ButtonGroups, but nothing should happen until the user clicks on the "accept" or "decline" button, how should I approach this???
TIA
I've implemented several ButtonGroups.
The first lot of JButtons in the first ButtonGroup is for selecting unique choices (one only).
At the very end, there are two JButtons, "accept" or "decline", on pressing one of these buttons, something happens.
The problem with my current code is this : once the conditions are fulfilled, even *before* the user clicks on the "accept" or "decline" button, something happens.
I'm currently using similar in concept to this :
Code:
if (blueButton.isSelected() && e.getSource() == accept) { // weitermachen...;}
else if (greenButton.isSelected() && e.getSource() == decline) { // exit...;}
Let the user select the choices in the ButtonGroups, but nothing should happen until the user clicks on the "accept" or "decline" button, how should I approach this???
TIA