Provide a createContents method for a program that initially displays this window:

When the user clicks the left combo box, this displays:

When the user clicks the right combo box, this displays:

Your createContents method must work in conjunction with this program skeleton:
import javax.swing.*;import java.awt.*;public class ComboBoxExample extends JFrame{private JComboBox daysBox;private JComboBox monthsBox;private String[] days ={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};private String[] months ={"January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November","December"};public ComboBoxExample(){setTitle("Combo Box Example");setSize(400, 100);setDefaultCloseOperation(EXIT_ON_CLOSE);createContents();setVisible(true);} // end ComboBoxExample constructor<The createContents method goes here.>public static void main(String[] args){new ComboBoxExample();}} // end class ComboBoxExample
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.