Field WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
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 if (condition == JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
2 getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
3 getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
4 int c = VTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT;
5 SwingUtilities.replaceUIInputMap(fc, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);
6 JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );
7 InputMap input = explorer.getDocumentsPanel().getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
8 WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
9 cp.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(esc, "_ESCAPE_");
10 im = comp.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.