posted 18 years ago
I am doing following code for message box, but want to set mnemonic for OK and Cancel, is this possible? if yes please throw your suggestions.
Object[] options = { "OK", "CANCEL" };
JOptionPane.showOptionDialog(null, "Click OK to continue", "Warning",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
null, options, options[0]);
Thanks in advance
Prashant Gour