Re: How to set default textbox on form?
Works if I change:
theTextBox.focus();
into:
theTextBox.setFocus(true);
Thanks!!
Blake McBride
On Tue, Apr 24, 2012 at 5:13 AM, Thomas Broyer <t.broyer@gmail.com> 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() {@Overridepublic void execute() {theTextBox.focus();}});To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R7RfvP3PGBQJ.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home