Use GWT Timer class and schedule the URL Change in run method. The
code will be roughly like this.
List imageURLs = new ArrayList();
// Add image urls to the above list
Timer timer = new Timer() {
int index = 0;
public void run() {
/*Set image URL to the image object created else where in your code*/
image.setUrl((String)imageURLs.get(index);
index++;
if( ( imageURLs .size() -1) == index){
index = 0;
}
}
};
timer.scheduleRepeating(1000) ;
-Srini
timer.
On Aug 6, 9:37 am, Gaunt Face <
matt.t.ga...@googlemail.com> wrote:
> Hey everyone
>
> I hope that this isn't a stupid question, I'm new to new GWT been
> playing around with it for couple of days attempting to re-vamp an
> existing website.
>
> Im trying to create a very simple photo slideshow that loops around 3
> images and displaying them.
>
> While I understand how to get the image to display and also how to
> make it change from a user click, I can't get my head around how to
> make my application do this on its own.
>
> Can anyone just point me in the right direction?
>
> Many Thanks
> Gaunt