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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -