I don't understand the difference in a OptionDialog between the destructive property, cancel property and other option.
What do especially these properties apart modify the option color ?
I saw in all cases, the optionDialog is closed when I click in all option.
They do absolutely nothing different than eachother other than modify the color. Destructive is red, cancel is black (Or grey, can't remember) and default is that whitish.
Destructive is used for "Delete" buttons, "Remove", stuff like that. "Cancel" is used for "Cancel" buttons (Obviously), and default is for everything that doesn't fall into those categories. And you have to define what they do in an EventListener.