Hi, I'm sure there is a simple way to do this. I have a menu, and by pressing CTRL + A, for example, it launches that menu. Here's the code:
contents.setAccelerator(KeyStroke.getKeyStroke(Key Event.VK_A,
ActionEvent.CTRL_MASK));
How would I do the same thing by pressing the F1 key, and is the solution the same for all the F keys?
Help is greatly appreciated.
