Field WHEN_IN_FOCUSED_WINDOW
Field type: int
Member of: javax.swing.JComponent
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 panel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).remove(ks);
2 cFrame.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).
3 InputMap im = pane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
4 cancel.getInputMap(CButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), A_CANCEL);
5 refresh.getInputMap(CButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_F5, 0), A_REFRESH);
6 InputMap im = treBookmarks.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
7 JComponent.WHEN_IN_FOCUSED_WINDOW );
8 panel.setInputMap( JComponent.WHEN_IN_FOCUSED_WINDOW, im );
9 JComponent.WHEN_IN_FOCUSED_WINDOW
10 internalDialog.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0,false), "ESC_CLOSE");
11 cp.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(esc, "_ESCAPE_");
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.