Chapter 12: Problem 21
Do you normally add radio buttons, check boxes, or both to a ButtonGroup object?
Short Answer
Expert verified
Answer: The main purpose of using Radio Buttons, Check Boxes, and ButtonGroup objects in a GUI is to create forms that provide users with options to select from. Radio buttons allow users to select only one option from a list of predefined choices, typically added to a ButtonGroup object to ensure the exclusive selection. Check boxes allow users to select multiple options and are generally not added to ButtonGroup objects as it would limit their function. In summary, Radio buttons and ButtonGroup objects are used for exclusive single choice selections, while check boxes are used for multiple selections.