Two things ....

1) $wnd.setTimeout() ...

2) don't even bother with that when com.google.gwt.user.client.Timer  
does that very thing under the covers, and you would be able to write  
your code without having to use JSNI.

-jason

On Dec 6, 2008, at 11:15 PM, prat wrote:

>
> public static native void repeatTime() /*-{
>  t=setTimeout("@com.google.gwt.client.myreminders::testtry()()",500);
>  }-*/;
>
>  public static void testtry(){
>         int i = Random.nextInt();
>         login_name.setText(""+i);
>  }
>
> login_name is TextBox where i want to dispaly random numbers at every
> 0.5 sec.
> But the above code isnt working.. Can any one find out the mistake.
> Thanks alot
>
> >


--~--~---------~--~----~------------~-------~--~----~
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