Sure but you have to think asynchronous. So you have to start your code 
that depends on the Timer in its run() method either directly or by firing 
an event, e.g.:

Timer timer = new Timer(){ 
     public void run(){ 
         System.out.println("some action here"); 
         onTimerDone(); //or eventBus.fire(new OnTimerDoneEvent()); if 
multiple classes are interested 
     }; 

}; 

timer.schedule(2000); 

.....

private void onTimerDone() {
  System.out.println("action to be executed AFTER timer call");
  // your code
}

-- 
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/-/zY9FfMNG7egJ.
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