InputMap im = rootPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
KeyStroke helpKey = KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0);
im.put(helpKey, "help");
InputMap im = rootPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
KeyStroke helpKey = KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0);
im.put(helpKey, "help");