this.closeDialog(new WindowEvent(this,WindowEvent.WINDOW_CLOSED));
setVisible(false); dispose();
    private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed        this.closeDialog(new WindowEvent(this,WindowEvent.WINDOW_CLOSED));    }//GEN-LAST:event_cancelButtonActionPerformed