Advanced Java

profiletapaswini
Assignment2.docx

1. Create a simple “Combo Box” through JAVA Swing. First of all, create a class name ComboBox. Then you have to create JFrame; the title of the frame is “Combo Box.” Create an ArrayList and put any three courses name in this list. Set the position & size of the combo-box and then set the size of the JFrame. The output is like the below image.

2. Create a “Menu” with two items through JAVA Swing. First of all, create a class name JMenu. Create a JFrame and give the title of the frame is “Swing Menu.” Create a Menu Bar and add two Items in this bar. Set the menu bar on this frame and set the size of the frame. The output is like the below image.