More than one KeyStroke (Shortcut) for a JMenuItem
Hello everone again,
I've another question. Is it possible to set more than one KeyStroke (Shortcut) to a JMenuItem. I mean that maybe STRG+N and INSERT do the same thing. I work with the Netbeans GUI Editor, and there you can only set one accelerator KeyStroke. Or is there any workaround I can use. I thought already about adding an KeyListenener to the main Form and if a Key is pressed i check which it was and do some things, but I think it's not the best idea, because I don't know exactly if that work i another component has the focus. I think it won't work.
Any suggestions ??