Suppose that you have declared a ButtonGroup named twoOptions and added two JCheckBoxes named box1 and box2
Question:
Suppose that you have declared a ButtonGroup named twoOptions and added two JCheckBoxes named box1 and box2 to it. Which box is selected after the following statements execute?
twoOptions.setSelected(box1);
twoOptions.setSelected(box2);
a. box1
b. box2
c. both box1 and box2
d. None of these
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: