private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
        // TODO add your handling code here:
        if (saveMenuItemIsUsed == false)
        { int n = JOptionPane.showConfirmDialog(null,"Are you sure that you want to exit without saving\nAll unsaved work will be lost", "Warning!", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
            if(n == JOptionPane.YES_OPTION)
             System.exit(0); 
            else
            
                saveMenuItemIsUsed = false;
        }
        else
            System.exit(0);
    }//GEN-LAST:event_exitMenuItemActionPerformed