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

/**
 *
 * @author  Chris
 */
public class TestTaking extends javax.swing.JInternalFrame {
    
    /** Creates new form testTaking */
    public TestTaking() {
        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();
        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();
        questionPanel = new javax.swing.JPanel();
        curQuestionPanel = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jRadioButton4 = new javax.swing.JRadioButton();
        jLabel3 = new javax.swing.JLabel();
        bottomPanel = new javax.swing.JPanel();
        timePanel = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        timeLabel = new javax.swing.JLabel();
        submitPanel = new javax.swing.JPanel();
        submitButton = new javax.swing.JButton();

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

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

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

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

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

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

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

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

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

        jLabel2.setFont(new java.awt.Font("Dialog", 0, 14));
        jLabel2.setText("What is the air-speed velocity of an unlaiden swallow?");
        curQuestionPanel.add(jLabel2, 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");
        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");
        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");
        curQuestionPanel.add(jRadioButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 170, -1, -1));

        jRadioButton4.setFont(new java.awt.Font("Dialog", 0, 12));
        jRadioButton4.setText("Not enough information given.");
        jRadioButton4.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED));
        curQuestionPanel.add(jRadioButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, -1, -1));

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

        questionPanel.add(curQuestionPanel, "card2");

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

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

        bottomPanel.setLayout(new javax.swing.BoxLayout(bottomPanel, javax.swing.BoxLayout.X_AXIS));

        bottomPanel.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(20, 1, 1, 1)));
        jLabel1.setText("Time Remaining");
        timePanel.add(jLabel1);

        timeLabel.setText("00:30:18");
        timePanel.add(timeLabel);

        bottomPanel.add(timePanel);

        submitButton.setText("Submit");
        submitPanel.add(submitButton);

        bottomPanel.add(submitPanel);

        getContentPane().add(bottomPanel, java.awt.BorderLayout.SOUTH);

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

    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 TestTaking();
        desktop.add(frame);
        frame.setVisible(true);
        mainFrame.show();
    }    
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel bottomPanel;
    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.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    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.JPanel navPanel;
    private javax.swing.JPanel questionPanel;
    private javax.swing.JButton submitButton;
    private javax.swing.JPanel submitPanel;
    private javax.swing.JLabel timeLabel;
    private javax.swing.JPanel timePanel;
    // End of variables declaration//GEN-END:variables
    
}