看看java.awt.FocusTraversalPolicypublic void setNextFocusableComponent(Component aComponent) Deprecated. As of 1.4, replaced by FocusTraversalPolicy Overrides the default FocusTraversalPolicy for this JComponent's focus traversal cycle by unconditionally setting the specified Component as the next Component in the cycle, and this JComponent as the specified Component's previous Component in the cycle. Parameters: aComponent - the Component that should follow this JComponent in the focus traversal cycle See Also: getNextFocusableComponent(), FocusTraversalPolicy
这个方法不推荐使用了,有没有别的方法?
Deprecated. As of 1.4, replaced by FocusTraversalPolicy Overrides the default FocusTraversalPolicy for this JComponent's focus traversal cycle by unconditionally setting the specified Component as the next Component in the cycle, and this JComponent as the specified Component's previous Component in the cycle. Parameters:
aComponent - the Component that should follow this JComponent in the focus traversal cycle
See Also:
getNextFocusableComponent(), FocusTraversalPolicy