Need help on how to doing "Ctrl-S" as shortcut on a JMenuItem. Thanks. :)
Printable View
Need help on how to doing "Ctrl-S" as shortcut on a JMenuItem. Thanks. :)
If my memory serves me correct i think the accelerator needs to be set(via of course a set method).
Thanks, here's a code btw if anyone might find useful.
mnunew.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,KeyEvent.CTRL_MASK));
where mnunew is a JMenuItem+