Assertion: swing's component | /r/CapableOf | gain the focus
Facets:
value: generally
type: MANNER
Source sentences:
text: A component generally gains the focus when the user clicks it, or when the user tabs between components, or otherwise interacts with a component.
text: If you want to ensure that a particular component gains the focus the first time a window is activated, you can call the requestFocusInWindow method on the component after the component has been realized, but before the frame is displayed.
text: Alternatively, you can apply a custom FocusTraversalPolicy to the frame and call the getDefaultComponent method to determine which component will gain the focus.
text: For a component to gain the focus, it must satisfy three requirements: it must be visible, enabled, and focusable.
text: To gain the focus when the user clicks on the picture, the component has a mouse listener.