I am using a NON-LOOPING animated gif ( a sequence which shows a balloon burst) in a java applet. To explain more there are 3 gif images 1. A Air Pump Now when the user clicks the pin image(trapped using mouselistener by putting the image in a panel and then in the applet).
The balloon image should call an non-looping animated gif showing the complete burst. Everything is fine for the FIRST time ie. The animation is shown fully when the pin is clicked. But second time onwards the it shows the last frame of the animation directly instead of showing it full. What could be the problem. Should I refresh the image loaded or any way to bring the animated gif to the starting position??? Images are loaded using getImage in the applet's init and painted using drawImage.
Anyway if it's not possible how to programmatically show the sequence of images. With some code. I have not tried that exact thing personally, but here are my two cents: I think you are on the same track for reloading the image, the issue is more in the browser.
It demonstrates waves in two dimensions, including such wave phenomena as interference, diffraction (single slit, double slit, etc.). To get started with the applet, just go through the items in the Example menu in the upper right. You can also still access the old javascript version, and the even older Java Version.
It has displayed the image, and it is currently on the last frame of the gif. Without the loop, there is no real reason why it would repeat without a refresh. Images are loaded once and then cached.
Maybe if you could turn off caching, it would help. As for doing it manually, just separate the images into different files and display them accordingly. This is a semi hack, but it would work. I hope this helps. BTW, be careful about mixing animated gifs with normal pics, it can make the normal pics flicker after the gifs have been displayed.
About Animated Menu Two Java Applet World Wind is an open-source virtual globe first developed by NASA in 2003 for use on personal computers and then further developed in concert with the open source community since 2004. The original version relied onNET Framework, which ran only on Microsoft Windows The more recent Java version, World Wind Java, is cross platform, a software development kit aimed at developers and, unlike the oldNET version, not a standalone virtual globe application in the style of Google Earth The SDK includes a suite of basic demos, available at goworldwind.org. The World Wind Java version was awarded NASA Software of the Year in November 2009. The program overlays NASA and USGS satellite imagery, aerial photography, topographic maps, Keyhole Markup Language and Collada files.