/* * AddQuestionMenu.java * * Created on October 17, 2003, 1:48 PM */ /** * * @author Joe */ public class AddQuestionMenu extends javax.swing.JFrame { /** Creates new form AddQuestionMenu */ public AddQuestionMenu() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() {//GEN-BEGIN:initComponents jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jComboBox1 = new javax.swing.JComboBox(); getContentPane().setLayout(null); setTitle("Add Question"); setMaximizedBounds(new java.awt.Rectangle(150, 100, 400, 230)); setName("Add Question"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jButton1.setText("Okay"); getContentPane().add(jButton1); jButton1.setBounds(70, 160, 81, 26); jButton2.setText("Cancel"); getContentPane().add(jButton2); jButton2.setBounds(240, 160, 73, 26); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select Question Type", "Multiple Choice", "True/False", "Short Answer/Essay", "Coding", "Fill in the Blank", "Matching" })); getContentPane().add(jComboBox1); jComboBox1.setBounds(70, 60, 240, 24); pack(); }//GEN-END:initComponents /** Exit the Application */ private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm System.exit(0); }//GEN-LAST:event_exitForm /** * @param args the command line arguments */ public static void main(String args[]) { new AddQuestionMenu().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JComboBox jComboBox1; // End of variables declaration//GEN-END:variables }