You can do something like this:

Image tgtImage = new Image("loading.gif");
panel.add(tgtImage);

The code above will show up a "Loading..." image.

Image finalImage = new Image("huge-image.png");
finalImage.addLoadListener(new LoadListener() {
  ...
  onLoad(Widget w) {
     panel.remove(tgtImage);
     panel.add(w);// w is finalImage
  }
});




--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com


On Nov 14, 8:20 am, Navdeep <[email protected]> wrote:
> I have images which are big in size so i would like to display the
> animated loading gif while the main images are actually being loaded
> and once they have been loaded then display the actual image. How can
> i do the same?

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