Re: Install keystroke on action without using a JMenuItem



> I need to install an Action with a defined accelerator key without
> using a corresponding JMenuItem. I've got a JButton to correspond with
> the accelerator key, but no Menu item.

JComponent.registerKeyboardAction();
http://java.sun.com/products/jfc/tsc/special_report/kestrel/keybindings.html

--
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities


.


Quantcast