How do i make it so if I have a button in a GUI frame... and i hit the number pad 2 on the keyboard that the button activates....?
Is it a Mnemonic because i tried doing that this way:
button.setMnemonic(KeyEvent.VK_NUMPAD2);
but this only works if you have alt pressed down.
so can someone please help me out!
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









