swing - Java JOptionPane.showConfirmDialog hot key -
i displaying confirmation dialog in java using joptionpane.showconfirmdialog. dialog shows yes no confirmation user. called follows:
int result = joptionpane.showconfirmdialog(sessionobjects.getactivecomponent(), "are sure want exit?", "my app", joptionpane.yes_no_option);
the question simple confirmation, can user press y yes , n no? @ present user has click on buttons?
thanks,
andez
you have "hotkeys" (mnemonics) buttons: alt+y "yes" , alt+n "no".
you can hit tab toggle between them , space press.
Comments
Post a Comment