private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        String[] options = {"Minimize", "Cancel", "Exit"};

        int rsp = JOptionPane.showOptionDialog(null, "Are u making the right decision?", "Message", 0,
                JOptionPane.QUESTION_MESSAGE, null, options, options[1]);

        if (rsp == 2) {
            System.exit(1);
        } else if (rsp == 0) {
            this.setState(UserGui.ICONIFIED);
        } else {
            this.setState(UserGui.DO_NOTHING_ON_CLOSE);
        }
    }//GEN-LAST:event_formWindowClosing