Works if I change:

    theTextBox.focus();

into:

    theTextBox.setFocus(true);

Thanks!!

Blake McBride



On Tue, Apr 24, 2012 at 5:13 AM, Thomas Broyer <[email protected]> wrote:

>
> On Tuesday, April 24, 2012 4:15:35 AM UTC+2, Blake wrote:
>>
>> Greetings,
>>
>> Is there a way to set which widget (usually a certain textbox) that
>> should be the default widget with focus when a new form appears?  Basically
>> when the new form appears, if the user just starts typing, the input should
>> appear in the widget that was specified as the one with the default focus.
>>
>
> When you're showing the form:
> Scheduler.get().scheduleDeferred(new ScheduledCommand() {
>    @Override
>    public void execute() {
>       theTextBox.focus();
>    }
> });
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/R7RfvP3PGBQJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to