@SuppressWarnings("StringEquality")
    private void FindLevelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FindLevelActionPerformed
        // TODO add your handling code here:
       /* try {
         Thread.sleep(1000);
         } catch(InterruptedException ex) {
         Thread.currentThread().interrupt();
         }*/
        if (exists()) {
            String LevelID = LevelIDInput.getText();

            int ID = Integer.parseInt(LevelID);

            switch (LevelID) {
                case "1":
                    Choice1 choice1 = new Choice1();
                    choice1.setVisible(true);
                    dispose();
                    break;

                case "2":
                    Choice2 choice2 = new Choice2();
                    choice2.setVisible(true);
                    dispose();
                    break;
                case "31":
                    Door1 door1 = new Door1();
                    door1.setVisible(true);
                    dispose();
                    break;
                case "32":
                    Door2 door2 = new Door2();
                    door2.setVisible(true);
                    dispose();
                    break;
                case "33":
                    Door3 door3 = new Door3();
                    door3.setVisible(true);
                    dispose();
                    break;
                default:
                    LevelIDInput.setText(null);
                    JOptionPane.showMessageDialog(null, "Please Enter Valid Level ID", LevelID, JOptionPane.ERROR_MESSAGE);
                    break;
            }
        } else {
            Deactivate deactivate = new Deactivate();
            deactivate.setVisible(true);
            dispose();
        }

    }//GEN-LAST:event_FindLevelActionPerformed