An other problem with my JDialogBox (ChoiceBox)
I've a problem with my ChoiceBox (JDialogBox);
my ChoiceBox is made of some label for the messages and two buttons: YES and NO;
Now, I want to know if I can use this for various action like cancel,save,exit;
or must I create a single ChoiceBox for each action in which I want to use it?
I had thinked to pass to the choiceBox constructor a parameter to describe the action to do;
so in the YES button method, with an if-else construct I could choose the action to do;
But some action are more complex so that it doesn't seem the best solution.
Can I do something with wait() method...?
Thank and excuse me for my poor english.