Jump to content

Associate number pad with buttons?

- - - - -

  • Please log in to reply
No replies to this topic

#1
Blmaster

Blmaster

    Learning Programmer

  • Members
  • PipPipPip
  • 50 posts
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!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users