@Override public void actionPerformed(ActionEvent e) { if (TestWindow.testRunning) return; try { TestWindow tw = new TestWindow(); tw.launchTestWindow(); } catch (Exception ex) { } ; }
@Override public void actionPerformed(ActionEvent e) { if (TestWindow.testRunning) return; int temp = JOptionPane.showConfirmDialog( null, "Retaking the test will ovveride existing data. Are you sure you wish to continue?", "Confirm Selection", JOptionPane.YES_NO_OPTION); if (temp == JOptionPane.NO_OPTION) { return; } BrainFreezeMain.patients.get(BrainFreezeMain.currentPatientIndex).eraseData(); try { TestWindow tw = new TestWindow(); tw.launchTestWindow(); } catch (Exception ex) { } ; }