Field WHEN_FOCUSED
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
aTable.registerKeyboardAction( excelTransferHandler, "Copy", copy, JComponent.WHEN_FOCUSED );
2
registerKeyboardAction(al, DELETE_CMD, delK, WHEN_FOCUSED);
3
WHEN_FOCUSED);
4
JComponent.WHEN_FOCUSED);
5
this.registerKeyboardAction(this, KeyStroke.getKeyStroke(KeyEvent.VK_C, 2), WHEN_FOCUSED );
6
registerKeyboardAction(al, DELETE_RESOURCE_AC, delK, WHEN_FOCUSED);
7
JComponent.WHEN_FOCUSED, e.getID() == e.KEY_PRESSED);
8
registerKeyboardAction( _selectAllListener, "SelectAll", _selectAll, JComponent.WHEN_FOCUSED );
9
JComponent.WHEN_FOCUSED);
10
WHEN_FOCUSED);
11
inputMap = component.getInputMap ( JComponent.WHEN_FOCUSED );
12
InputMap inputMap = getInputMap(JComponent.WHEN_FOCUSED);
13
im = comp.getInputMap(JComponent.WHEN_FOCUSED);
14
JComponent.WHEN_FOCUSED
15
javax.swing.InputMap imap = svgCanvas.getInputMap(JComponent.WHEN_FOCUSED);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.