thanks....
now my code is:

Code:
class Login extends Window {

  onRender(.....) {

    field = new TextField();

    setFocusWidget(field);

  }
}
and work fine.. now appears that make more sence...