else if (object == no)
else if (object == cancel)
        public void actionPerformed(java.awt.event.ActionEvent event) {            Object object = event.getSource();            if (object == yes)                res = YES;            else if (object == no)                res = NO;            else if (object == no)                res = CANCEL;            setVisible(false);        }