Write a short class that represents a panel with a single radio button that has the option "Yes" and the option "No." By default, the Yes button should be checked.

What will be an ideal response?

```
import javax.swing.*;
import java.awt.*;
public class RadioPanel extends JPanel {
private JRadioButton yes, no;
public RadioPanel() {
yes = new JRadioButton("Yes", true);
no = new JradioButton("No");
add(yes);
add(no);
} // end constructor
} // end class RadioPanel
```

Computer Science & Information Technology

You might also like to view...

The ________ Tool allows you to easily delete borders in a table

Fill in the blank(s) with correct word

Computer Science & Information Technology

 In Windows 10, the backup software is called ____.

A. Dock B. Library C. File History D. Time Machine

Computer Science & Information Technology