94.5k views
2 votes
The maximum number of radio buttons that can be selected within a ButtonGroup is

1.
2.
5.
all.

User TommyN
by
5.5k points

1 Answer

5 votes

Answer:

1

Step-by-step explanation:

The maximum number of radio buttons that can be selected within a ButtonGroup is 1.

For example, in the following code segment we create a button group btn_group consisting of 5 buttons.

ButtonGroup btn_group = new ButtonGroup();

btn_group.add(btn_one);

btn_group.add(btn_two);

btn_group.add(btn_three);

btn_group.add(btn_fours);

btn_group.add(btn_five);

Buttongroup ensures that a maximum of one button is selected at any given point of time.

User The Zach Man
by
6.3k points