private void jmenu_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmenu_ExitActionPerformed
        int dialogButton = JOptionPane.YES_NO_OPTION;
        JOptionPane.showConfirmDialog(null, "Would You Like to Save the file before exiting?", "Exit", dialogButton);

        if (dialogButton == JOptionPane.YES_OPTION) {
            saveFile();
            System.exit(1);
        } else {
            System.exit(1);
        }
    }