How do I bind a function key say(F11 etc) to a JInternalFrame, so it can activate a particular action.
I tried with the following
this.getInputMap().put(KeyStroke.getKeyStroke("F11"), new AbstractAction() {
public void actionPerformed(ActionEvent e) {
System.out.println("Called");
}
});
but it never gets called?
Or please suggest how to activate a button inside a JInternalFrame using function key.
Thanks
Azlam
以上就是JInternalFrame and Keybinding的详细内容,更多请关注web前端其它相关文章!