Provide a
createContentsmethod for a program that displays this window:

The male and female radio buttons should behave in the normal fashion—when one is selected, the other is unselected. Note that the male button is selected when the window initially displays. Your
createContentsmethod must work in conjunction with this program skeleton:
import javax.swing.*;import java.awt.*;public class MaleFemaleRadioButtons extends JFrame{ private JRadioButton male; private JRadioButton female; public MaleFemaleRadioButtons() { setTitle("Male-female Radio Buttons"); setSize(300, 100); setDefaultCloseOperation(EXIT _ ON _ CLOSE); createContents(); setVisible(true); } // end MaleFemaleRadioButtons constructor public static void main(String[] args) { new MaleFemaleRadioButtons(); }} // end class MaleFemaleRadioButtons
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.