Wednesday, February 15, 2017

Re: Animating images in GWT

I tried with a timer but the transition is a little slow the first time as the images download. Is there some way to cache or download them into memory before iterating them?
// Create a new timer that iterates the images
Timer t = new Timer() {
int counter = 0;

public void run() {
if (counter < imageUrls.size()) {
.setHTML("<img src=\"" + imageUrls.get(counter) + "\"/>");
// Schedule the timer to run once in x seconds.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment