/* * StudentTestToolUI.java * * Created on November 18, 2007, 12:36 PM */ import javax.swing.*; /** * * @author bcolvin */ public class StudentTestToolUI extends javax.swing.JFrame { /** Creates new form StudentTestToolUI */ private JFileChooser opent; private JFileChooser savet; private Settings setting; private Login login; private Qcomment comm; private PageProc pproc; private SubmitTest tsub; public StudentTestToolUI() { setTitle("Test Tool"); opent = new JFileChooser(); opent.setDialogTitle("Choose a test to open"); opent.setDialogType(JFileChooser.OPEN_DIALOG); savet = new JFileChooser(); savet.setDialogTitle("Choose save location"); savet.setDialogType(JFileChooser.SAVE_DIALOG); setting= new Settings(); login= new Login(); login.setAlwaysOnTop(true); login.setVisible(true); initComponents(); Fallmid.setVisible(false); } /** This method is called from within the constructor to * initialize the form. */ private void initComponents() { Fallmid = new javax.swing.JPanel(); jScrollBar1 = new javax.swing.JScrollBar(); Question1 = new javax.swing.JLabel(); Question2 = new javax.swing.JLabel(); Question3 = new javax.swing.JLabel(); Question4 = new javax.swing.JLabel(); Question5 = new javax.swing.JLabel(); Q1time = new javax.swing.JLabel(); Q2time = new javax.swing.JLabel(); Q3time = new javax.swing.JLabel(); Q4time = new javax.swing.JLabel(); Q5time = new javax.swing.JLabel(); jCheckBox1 = new javax.swing.JCheckBox(); jCheckBox2 = new javax.swing.JCheckBox(); jCheckBox3 = new javax.swing.JCheckBox(); jCheckBox4 = new javax.swing.JCheckBox(); jCheckBox5 = new javax.swing.JCheckBox(); Goto1 = new javax.swing.JButton(); Goto2 = new javax.swing.JButton(); Goto3 = new javax.swing.JButton(); Goto4 = new javax.swing.JButton(); Goto5 = new javax.swing.JButton(); Qcom1 = new javax.swing.JButton(); Qcom2 = new javax.swing.JButton(); Qcom3 = new javax.swing.JButton(); Qcom4 = new javax.swing.JButton(); Qcom5 = new javax.swing.JButton(); Timer = new javax.swing.JLabel(); student = new javax.swing.JLabel(); Proctor = new javax.swing.JLabel(); Class = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); jScrollBar2 = new javax.swing.JScrollBar(); Pagep = new javax.swing.JButton(); tsubmit = new javax.swing.JButton(); StudentUImenu = new javax.swing.JMenuBar(); FileMenu = new javax.swing.JMenu(); Open = new javax.swing.JMenuItem(); Save = new javax.swing.JMenuItem(); Close = new javax.swing.JMenuItem(); Exit = new javax.swing.JMenuItem(); Edit = new javax.swing.JMenu(); Undo = new javax.swing.JMenuItem(); Redo = new javax.swing.JMenuItem(); Cut = new javax.swing.JMenuItem(); Copy = new javax.swing.JMenuItem(); Paste = new javax.swing.JMenuItem(); Profile = new javax.swing.JMenu(); Settings = new javax.swing.JMenuItem(); Help = new javax.swing.JMenu(); About = new javax.swing.JMenuItem(); Alert_proctor = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); Question1.setText(" Question 1"); Question2.setText(" Question 2"); Question3.setText(" Question 3"); Question4.setText(" Question 4"); Question5.setText(" Question 5"); Q1time.setFont(new java.awt.Font("Dialog", 0, 10)); Q1time.setText("(est. 7min)"); Q2time.setFont(new java.awt.Font("Dialog", 0, 10)); Q2time.setText("(est. 3min)"); Q3time.setFont(new java.awt.Font("Dialog", 0, 10)); Q3time.setText("(est. 5min)"); Q4time.setFont(new java.awt.Font("Dialog", 0, 10)); Q4time.setText("(est. 1min)"); Q5time.setFont(new java.awt.Font("Dialog", 0, 10)); Q5time.setText("(est. 10min)"); jCheckBox1.setText(" Status"); jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0)); jCheckBox2.setText(" Status"); jCheckBox2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); jCheckBox2.setMargin(new java.awt.Insets(0, 0, 0, 0)); jCheckBox3.setText(" Status"); jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); jCheckBox3.setMargin(new java.awt.Insets(0, 0, 0, 0)); jCheckBox4.setText(" Status"); jCheckBox4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); jCheckBox4.setMargin(new java.awt.Insets(0, 0, 0, 0)); jCheckBox5.setText(" Status"); jCheckBox5.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); jCheckBox5.setMargin(new java.awt.Insets(0, 0, 0, 0)); Goto1.setFont(new java.awt.Font("Dialog", 0, 6)); Goto1.setText("Goto"); Goto2.setFont(new java.awt.Font("Dialog", 0, 6)); Goto2.setText("Goto"); Goto3.setFont(new java.awt.Font("Dialog", 0, 6)); Goto3.setText("Goto"); Goto4.setFont(new java.awt.Font("Dialog", 0, 6)); Goto4.setText("Goto"); Goto5.setFont(new java.awt.Font("Dialog", 0, 6)); Goto5.setText("Goto"); Qcom1.setFont(new java.awt.Font("Dialog", 0, 6)); Qcom1.setText("Comment"); Qcom1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comm=new Qcomment(); comm.setVisible(true); } }); Qcom2.setFont(new java.awt.Font("Dialog", 0, 6)); Qcom2.setText("Comment"); Qcom2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); Qcom2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comm=new Qcomment(); comm.setVisible(true); } }); Qcom3.setFont(new java.awt.Font("Dialog", 0, 6)); Qcom3.setText("Comment"); Qcom3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comm=new Qcomment(); comm.setVisible(true); } }); Qcom4.setFont(new java.awt.Font("Dialog", 0, 6)); Qcom4.setText("Comment"); Qcom4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comm=new Qcomment(); comm.setVisible(true); } }); Qcom5.setFont(new java.awt.Font("Dialog", 0, 6)); Qcom5.setText("Comment"); Qcom5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comm=new Qcomment(); comm.setVisible(true); } }); Timer.setFont(new java.awt.Font("Dialog", 1, 18)); Timer.setText("Time Remaining: 0:05:10"); student.setText("Student: "); Proctor.setText("Proctor:"); Class.setText("Class:"); Pagep.setText("PageProctor"); Pagep.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pproc=new PageProc(); pproc.setVisible(true); } }); tsubmit.setText("Submit"); tsubmit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tsub=new SubmitTest(); tsub.setVisible(true); } }); javax.swing.GroupLayout FallmidLayout = new javax.swing.GroupLayout(Fallmid); Fallmid.setLayout(FallmidLayout); FallmidLayout.setHorizontalGroup( FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(FallmidLayout.createSequentialGroup() .addContainerGap() .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Question1) .addComponent(Question2) .addComponent(Question3) .addGroup(FallmidLayout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(Q2time, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)) .addGroup(FallmidLayout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(Q1time, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)) .addGroup(FallmidLayout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(Q3time)) .addComponent(jCheckBox1) .addComponent(jCheckBox2) .addComponent(jCheckBox3) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, FallmidLayout.createSequentialGroup() .addComponent(Goto1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE) .addComponent(Qcom1, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(FallmidLayout.createSequentialGroup() .addComponent(Goto2, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Qcom2, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(FallmidLayout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Goto3, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Qcom3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, Short.MAX_VALUE)) .addGroup(FallmidLayout.createSequentialGroup() .addComponent(Goto4, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Qcom4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(FallmidLayout.createSequentialGroup() .addComponent(Goto5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Qcom5, javax.swing.GroupLayout.PREFERRED_SIZE, 50, Short.MAX_VALUE)) .addComponent(Question4) .addGroup(FallmidLayout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(Q4time)) .addComponent(jCheckBox4) .addComponent(Question5) .addGroup(FallmidLayout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(Q5time)) .addComponent(jCheckBox5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, FallmidLayout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 698, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(FallmidLayout.createSequentialGroup() .addGap(29, 29, 29) .addComponent(Timer, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Pagep) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tsubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85, Short.MAX_VALUE) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(student) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Class) .addComponent(Proctor))) .addGap(56, 56, 56)))) ); FallmidLayout.setVerticalGroup( FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(FallmidLayout.createSequentialGroup() .addContainerGap() .addComponent(Question1) .addGap(6, 6, 6) .addComponent(Q1time) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Qcom1) .addComponent(Goto1)) .addGap(13, 13, 13) .addComponent(Question2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Q2time) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(Qcom2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(Goto2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(16, 16, 16) .addComponent(Question3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Q3time) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(Goto3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(Qcom3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(Question4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Q4time) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Goto4, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Qcom4)) .addGap(16, 16, 16) .addComponent(Question5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Q5time) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Goto5) .addComponent(Qcom5, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, FallmidLayout.createSequentialGroup() .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(FallmidLayout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Proctor) .addComponent(Pagep) .addComponent(tsubmit)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Class)) .addGroup(FallmidLayout.createSequentialGroup() .addContainerGap() .addComponent(Timer, javax.swing.GroupLayout.DEFAULT_SIZE, 55, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(FallmidLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 460, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(FallmidLayout.createSequentialGroup() .addComponent(student) .addContainerGap()) .addGroup(FallmidLayout.createSequentialGroup() .addComponent(jScrollBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE) .addContainerGap()) ); FileMenu.setText("File"); Open.setText("Open"); Open.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { OpenActionPerformed(evt); } }); FileMenu.add(Open); Save.setText("Save"); Save.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SaveActionPerformed(evt); } }); FileMenu.add(Save); Close.setText("Close"); Close.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CloseActionPerformed(evt); } }); FileMenu.add(Close); Exit.setText("Exit"); Exit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ExitActionPerformed(evt); } }); FileMenu.add(Exit); StudentUImenu.add(FileMenu); Edit.setText("Edit"); Undo.setText("Undo"); Undo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { UndoActionPerformed(evt); } }); Edit.add(Undo); Redo.setText("Redo"); Redo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { RedoActionPerformed(evt); } }); Edit.add(Redo); Cut.setText("Cut"); Cut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CutActionPerformed(evt); } }); Edit.add(Cut); Copy.setText("Copy"); Copy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CopyActionPerformed(evt); } }); Edit.add(Copy); Paste.setText("Paste"); Paste.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { PasteActionPerformed(evt); } }); Edit.add(Paste); StudentUImenu.add(Edit); Profile.setText("Profile"); Settings.setText("Settings"); Settings.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SettingsActionPerformed(evt); } }); Profile.add(Settings); StudentUImenu.add(Profile); Help.setText("Help"); About.setText("About"); About.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AboutActionPerformed(evt); } }); Help.add(About); Alert_proctor.setText("Alert Proctor"); Alert_proctor.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Alert_proctorActionPerformed(evt); } }); Help.add(Alert_proctor); StudentUImenu.add(Help); setJMenuBar(StudentUImenu); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Fallmid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Fallmid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); } private void Alert_proctorActionPerformed(java.awt.event.ActionEvent evt) { //pproc=new PageProc(); //pproc.setVisible(true); System.out.printf("This is how the student pages the proctor.\n"); } private void AboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AboutActionPerformed String [] launchWebsite = { "firefox", "http://www.csc.calpoly.edu/~jverburg/projects/work/testtool", }; try { Runtime.getRuntime().exec(launchWebsite); } catch (Exception e) { e.printStackTrace(); } }//GEN-LAST:event_AboutActionPerformed private void SettingsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsActionPerformed setting.setVisible(true); }//GEN-LAST:event_SettingsActionPerformed private void PasteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PasteActionPerformed System.out.printf("This is how the student pastes stuff.\n"); }//GEN-LAST:event_PasteActionPerformed private void CopyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CopyActionPerformed System.out.printf("This is how the student copies stuff.\n"); }//GEN-LAST:event_CopyActionPerformed private void CutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CutActionPerformed System.out.printf("This is how the student cuts stuff.\n"); }//GEN-LAST:event_CutActionPerformed private void RedoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RedoActionPerformed System.out.printf("This is how the student redoes stuff.\n"); }//GEN-LAST:event_RedoActionPerformed private void UndoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UndoActionPerformed System.out.printf("This is how the student undoes stuff.\n"); }//GEN-LAST:event_UndoActionPerformed private void ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ExitActionPerformed this.setVisible(false); }//GEN-LAST:event_ExitActionPerformed private void CloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CloseActionPerformed Fallmid.setVisible(false); login.setVisible(true); }//GEN-LAST:event_CloseActionPerformed private void SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SaveActionPerformed savet.setVisible(true); int returnVal = savet.showOpenDialog(this); if(returnVal == JFileChooser.APPROVE_OPTION) { System.out.printf("testsave\n"); } }//GEN-LAST:event_SaveActionPerformed private void OpenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OpenActionPerformed opent.setVisible(true); int returnVal = opent.showOpenDialog(this); if(returnVal == JFileChooser.APPROVE_OPTION) { System.out.printf("testopen\n"); } }//GEN-LAST:event_OpenActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new StudentTestToolUI().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JMenuItem About; private javax.swing.JMenuItem Alert_proctor; private javax.swing.JLabel Class; private javax.swing.JMenuItem Close; private javax.swing.JMenuItem Copy; private javax.swing.JMenuItem Cut; private javax.swing.JMenu Edit; private javax.swing.JMenuItem Exit; public static javax.swing.JPanel Fallmid; private javax.swing.JMenu FileMenu; private javax.swing.JButton Goto1; private javax.swing.JButton Goto2; private javax.swing.JButton Goto3; private javax.swing.JButton Goto4; private javax.swing.JButton Goto5; private javax.swing.JMenu Help; private javax.swing.JMenuItem Open; private javax.swing.JButton Pagep; private javax.swing.JMenuItem Paste; private javax.swing.JLabel Proctor; private javax.swing.JMenu Profile; private javax.swing.JLabel Q1time; private javax.swing.JLabel Q2time; private javax.swing.JLabel Q3time; private javax.swing.JLabel Q4time; private javax.swing.JLabel Q5time; private javax.swing.JButton Qcom1; private javax.swing.JButton Qcom2; private javax.swing.JButton Qcom3; private javax.swing.JButton Qcom4; private javax.swing.JButton Qcom5; private javax.swing.JLabel Question1; private javax.swing.JLabel Question2; private javax.swing.JLabel Question3; private javax.swing.JLabel Question4; private javax.swing.JLabel Question5; private javax.swing.JMenuItem Redo; private javax.swing.JMenuItem Save; private javax.swing.JMenuItem Settings; private javax.swing.JMenuBar StudentUImenu; private javax.swing.JLabel Timer; private javax.swing.JMenuItem Undo; private javax.swing.JCheckBox jCheckBox1; private javax.swing.JCheckBox jCheckBox2; private javax.swing.JCheckBox jCheckBox3; private javax.swing.JCheckBox jCheckBox4; private javax.swing.JCheckBox jCheckBox5; private javax.swing.JScrollBar jScrollBar1; private javax.swing.JScrollBar jScrollBar2; private javax.swing.JSeparator jSeparator1; private javax.swing.JLabel student; private javax.swing.JButton tsubmit; }