/*
 * testTaking.java
 *
 * Created on October 20, 2003, 12:19 AM
 */

/**
 *
 * @author  Chris
 */
public class TestGrading extends javax.swing.JInternalFrame {
    
    /** Creates new form testTaking */
    public TestGrading() {
        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
        jPanel1 = new javax.swing.JPanel();
        navPanel = new javax.swing.JPanel();
        questionNavPanel = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jComboBox1 = new javax.swing.JComboBox();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        optionsPanel = new javax.swing.JPanel();
        jButton5 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        questionPanel = new javax.swing.JPanel();
        curQuestionPanel = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jRadioButton4 = new javax.swing.JRadioButton();
        jLabel2 = new javax.swing.JLabel();
        curQuestionComment = new javax.swing.JTextArea();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        studentNavPanel = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jList1 = new javax.swing.JList();

        getContentPane().setLayout(new java.awt.BorderLayout(10, 10));

        setIconifiable(true);
        setMaximizable(true);
        setResizable(true);
        setTitle("Take Test");
        jPanel1.setLayout(new java.awt.BorderLayout(10, 10));

        navPanel.setLayout(new java.awt.GridLayout(2, 0));

        jButton1.setText("First");
        questionNavPanel.add(jButton1);

        jButton2.setText("Prev");
        questionNavPanel.add(jButton2);

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5" }));
        questionNavPanel.add(jComboBox1);

        jButton3.setText("Next");
        questionNavPanel.add(jButton3);

        jButton4.setText("Last");
        questionNavPanel.add(jButton4);

        navPanel.add(questionNavPanel);

        jButton5.setText("Add Comment");
        optionsPanel.add(jButton5);

        jButton7.setText("Edit Question Properties");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        optionsPanel.add(jButton7);

        jButton8.setText("Adjust Score");
        optionsPanel.add(jButton8);

        navPanel.add(optionsPanel);

        jPanel1.add(navPanel, java.awt.BorderLayout.SOUTH);

        questionPanel.setLayout(new java.awt.BorderLayout());

        questionPanel.setBorder(new javax.swing.border.EtchedBorder());
        curQuestionPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Dialog", 0, 14));
        jLabel1.setText("What is the air-speed velocity of an unlaiden swallow?");
        curQuestionPanel.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 70, 460, 30));

        jRadioButton1.setFont(new java.awt.Font("Dialog", 0, 12));
        jRadioButton1.setSelected(true);
        jRadioButton1.setText("20 m/h");
        jRadioButton1.setEnabled(false);
        curQuestionPanel.add(jRadioButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, -1, -1));

        jRadioButton2.setFont(new java.awt.Font("Dialog", 0, 12));
        jRadioButton2.setText("60 Km/s");
        jRadioButton2.setEnabled(false);
        curQuestionPanel.add(jRadioButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, -1, -1));

        jRadioButton3.setFont(new java.awt.Font("Dialog", 0, 12));
        jRadioButton3.setText("1 m/s");
        jRadioButton3.setEnabled(false);
        curQuestionPanel.add(jRadioButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 170, -1, -1));

        jRadioButton4.setFont(new java.awt.Font("Dialog", 1, 14));
        jRadioButton4.setForeground(new java.awt.Color(255, 0, 0));
        jRadioButton4.setText("Not enough information given.");
        jRadioButton4.setBorder(new javax.swing.border.EtchedBorder());
        jRadioButton4.setEnabled(false);
        curQuestionPanel.add(jRadioButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, -1, -1));

        jLabel2.setFont(new java.awt.Font("Dialog", 1, 24));
        jLabel2.setText("Question 1");
        curQuestionPanel.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 360, 50));

        curQuestionComment.setLineWrap(true);
        curQuestionComment.setText("This was a bit of a trick question.  I did not specify if it was a North African or European; thus the answer is: \"Not enough information given.\"");
        curQuestionComment.setWrapStyleWord(true);
        curQuestionComment.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
        curQuestionPanel.add(curQuestionComment, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 270, 410, 70));

        jLabel3.setText("Comments:");
        curQuestionPanel.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, -1, -1));

        jLabel4.setText("Score:");
        curQuestionPanel.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 360, -1, -1));

        jLabel5.setFont(new java.awt.Font("Dialog", 0, 12));
        jLabel5.setText("0 Points");
        curQuestionPanel.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 360, -1, -1));

        jLabel6.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel6.setForeground(new java.awt.Color(255, 0, 0));
        jLabel6.setText("->");
        curQuestionPanel.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, -1, -1));

        questionPanel.add(curQuestionPanel, java.awt.BorderLayout.CENTER);

        jPanel1.add(questionPanel, java.awt.BorderLayout.CENTER);

        studentNavPanel.setLayout(new java.awt.BorderLayout());

        studentNavPanel.setBorder(new javax.swing.border.TitledBorder("Student"));
        jScrollPane1.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        jList1.setBackground(new java.awt.Color(204, 204, 204));
        jList1.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Bob, Sideshow", "Burns, Montomery", "Clown, Crusty The", "Flanders, Ned", "Mel, Sideshow", "Moe", "Nahasapeemapetilon, Apu", "Power, Max", "Simpson, Bart", "Simpson, Homer", "Lisa S.", "L. Simpson", "Simpson, Maggie", "Simpson, Marge", "Smithers, Waylon", "Wiggum, Chief" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList1.setMinimumSize(new java.awt.Dimension(75, 100));
        jList1.setPreferredSize(new java.awt.Dimension(150, 100));
        jScrollPane1.setViewportView(jList1);

        studentNavPanel.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        jPanel1.add(studentNavPanel, java.awt.BorderLayout.EAST);

        getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

        pack();
    }//GEN-END:initComponents

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // Add your handling code here:
    }//GEN-LAST:event_jButton7ActionPerformed

    public static final void main(String[] args) {
        javax.swing.JFrame mainFrame = new javax.swing.JFrame();
        mainFrame.setSize(500, 500);
        javax.swing.JDesktopPane desktop = new javax.swing.JDesktopPane();
        mainFrame.getContentPane().add(desktop);
        javax.swing.JInternalFrame frame = new TestGrading();
        desktop.add(frame);
        frame.setVisible(true);
        mainFrame.show();
    }    
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea curQuestionComment;
    private javax.swing.JPanel curQuestionPanel;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JList jList1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButton4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel navPanel;
    private javax.swing.JPanel optionsPanel;
    private javax.swing.JPanel questionNavPanel;
    private javax.swing.JPanel questionPanel;
    private javax.swing.JPanel studentNavPanel;
    // End of variables declaration//GEN-END:variables
    
}