Hi everybody,
I've been working with gui recently, and I need help with my JButtons. I need to figure out how to set a button on the keyboard to click that JBUtton. I.e. When i hit the enter key it picks say the third button on the list or something like that. I've tried .setMnemonic with VK_Enter, but it still requires the user to press ALT+Enter. Is there a way to make it so that just a simple "Enter" keystroke (Ascii value 13) click the button?
Thanx in advance!