Explain what would happen if the radio buttons used in the QuoteOptions program were not organized into a ButtonGroup object. Modify the program to test your answer.
What will be an ideal response?
The three radio buttons used in the QuoteOptions program represent mutually exclusive choices (Comedy, Philosophy, or Carpentry). Their organization into a ButtonGroup prevents more than one of them from being selected at any point in time. The references comedy, philosophy, and carpentry are associated with JRadioButton objects, with comedy being set initially to true. These JRadioButton objects are added to a JPanel which is the primary panel containing the GUI. If they are not organized into a ButtonGroup multiple buttons can be selected at one time. However, the quote displayed is the quote associated with the last selected button (even though other buttons also may be selected).
You might also like to view...
Which of the following issues will cause a device to have an IPv4 address starting with 169.254.?
a. Cannot get IP address from DHCP server b. Device exposed to public Internet with DMZ c. Port forwarding configured for device d. Device also has an IPv6 address.
The ___________ allows you to type a URL in your browser instead of an IP address.
Fill in the blank(s) with the appropriate word(s).
A(n) ______ system is set of programs that coordinate all the activities among computer or mobile device hardware.
Fill in the blank(s) with the appropriate word(s).
A firewall that is implemented as software on an individual PC or server is called a Host Firewall.
a. true b. false