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
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
Step by Step Solution
3.35 Rating (158 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
