public abstract class InternalFrameFocusTraversalPolicy extends FocusTraversalPolicy
Constructor and Description |
---|
InternalFrameFocusTraversalPolicy() |
Modifier and Type | Method and Description |
---|---|
Component |
getInitialComponent(JInternalFrame frame)
返回组件应接收焦点时,JInternalFrame首次入选。
|
getComponentAfter, getComponentBefore, getDefaultComponent, getFirstComponent, getInitialComponent, getLastComponent
public Component getInitialComponent(JInternalFrame frame)
setSelected(true)
选定的初始组件将不会再使用。相反,如果jinternalframe失去随后恢复的选择,或是不可见或不可显示,随后可见和可显示,该jinternalframe最近聚焦组件将成为焦点的主人。此方法的默认实现返回jinternalframe的默认组件集中。
frame
- jinternalframe的初始组件要返回
IllegalArgumentException
如果窗口是空的
JInternalFrame.getMostRecentFocusOwner()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.