java - What role does optionType play in a JOptionPane OptionsDialog? -
note: please pay attention fact options dialog here, not confirm dialog. makes difference in i'm asking , how swing behaves!
i looked @ code example of option dialog in action, confused 1 thing:
if supplying dialog options in
optionsparameter, of use/role/significanceoptiontypeparameter?
according javadocs you're options are:
default_optionyes_no_optionyes_no_cancel_option; orok_cancel_option
how these different options affect resultant dialog, or swing ignore them?!? in advance!
the optiontype parameter defines amongst options user have choose. if use yes_no_cancel_option, display 3 buttons, 1 each option:
- yes
- no
- cancel

the same goes possible optiontype values.
Comments
Post a Comment