/* ComboDrawApp.java Seminar 7 - Graphical User Interface (GUI) POST in Sem 7 folder DQs #2 2.Write a program that allows the user to select a shape from a JComboBox and that then draws that shape 20 times with random locations and dimensions in method paint(). The first item in the JComboBox should be the default shape that is displayed the first time paint() is called. Be sure to use the elements specified in the DQ in order to get some experience with basic GUI elements! */ /** * * @author Darren Frendo */ import java.io.*; import javax.swing.*; import javax.swing.JFrame; import java.awt.Graphics; import java.awt.Color; public class ComboDrawApp { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { // TODO code application logic here ComboDrawForm newComboDrawForm = new ComboDrawForm(); newComboDrawForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); newComboDrawForm.setSize( 500, 500 ); // set frame size newComboDrawForm.setVisible( true ); // display frame } }