private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed
        int indx = groupList.getSelectedIndex() - 1;

        transferChanges();

        int n = 0;
        //see if updated
        if (!groupNameBox.getText().equals("")
                && (editingFilt != null
                && !editingFilt.equals(original))) {
            //request confirmation of swtiching with unwritten changes
            //all done
            n = confirmDiscard();
        }

        //they want to exit
        if (n == 0) {

            this.dispose();
        }
    }//GEN-LAST:event_cancelButtonActionPerformed