Control.setFocus

Causes the receiver to have the <em>keyboard focus</em>, such that all keyboard events will be delivered to it. Focus reassignment will respect applicable platform constraints.

@return <code>true</code> if the control got focus, and <code>false</code> if it was unable to.

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@see #forceFocus

class Control
bool
setFocus
(
)

Meta