Question: 1 ) The code below creates three radio buttons with the text Option 1 , Option 2 , and Option 3 . The radio button

1) The code below creates three radio buttons with the text Option 1,Option 2, and Option 3. The radio button that displays the text Option 1 is initially selected. The components are grouped so that a mutually exclusive relationship exists among them. Complete the blank space.(10 points)
// Create three radio buttons.
JRadioButton radio1= new JRadioButton("Option 1", true);
JRadioButton radio2= new JRadioButton("Option 2");
JRadioButton radio3= new JRadioButton("Option 3");
// Create a ButtonGroup object.
Write code here:
// Add the radio buttons to the ButtonGroup object.
Write code here:

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 Programming Questions!