Question: Java You have several JRadioButtons on your GUI to allow the user to select the color of the item they are ordering. Unfortunately, the program

Java

You have several JRadioButtons on your GUI to allow the user to select the color of the item they are ordering. Unfortunately, the program currently allows the user to select more than one JRadioButton at a time. What do you need to do in order to get the normal (only one selected a time) behavior?

Question 11 options:

use JCheckBoxes instead of JRadioButtons

set the selection mode of the JRadioButtons to SINGLE_SELECTION

write code to manually deselect the other radio buttons when a new one is selected

add the JRadioButtons to a ButtonGroup

Question 12

Which of these GUI components is best used to display information to the user that does not change?

Question 12 options:

JLabel

JFont

JText

JButton

Question 13

If you think you've written to a file in your program, but the file is empty when your program finishes, what did you forget to do?

Question 13 options:

Call

close()

Call

finished()

Write a "finally" block

Call

System.exit()

Question 14

What class did we use to write to a file?

Question 14 options:

PrintWriter

Scanner

File

JFileChooser

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!