private void cancelBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelBtnActionPerformed
        int indx = activityList.getSelectedIndex() - 1;
        transferChanges(false);
        int n = 0;

        //see if updated
        if (!activityNameBox.getText().equals("")
                && (editingAct != null
                && !editingAct.equals(original))) {
            //request confirmation of cancel
            n = confirmDiscard();
        }
        if (n == 0) {
            this.dispose();
        }
    }//GEN-LAST:event_cancelBtnActionPerformed