Can someone quickly tell me, what is the equivalent class to Timer in Java.
I need to use setTimeout, all the examples I find here are JavaScript based.
You could use GWT’s timer:
new com.google.gwt.user.client.Timer() {
@Override
public void run() {
// TODO Auto-generated method stub
}
}
//you have:
// .scheduleRepeating(periodMillis);
// .schedule(delayMillis)
Thank you very much, that worked and saved my time.
That was a quick reply, I really appreciate people who qucikly reply as it saves lot of time for others.