wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes i want to animated the pic at applet like a gif Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "i want to animated the pic at applet like a gif" Watch "i want to animated the pic at applet like a gif" New topic
Author

i want to animated the pic at applet like a gif

ali rafiq
Ranch Hand

Joined: Jan 09, 2003
Posts: 75
im loading the three pic at applet with same layer .. show one by one by the thread but it load third at time of initializing of applet it has loaded the pic i want it after the loading of applet


if u learn to break the rock .. next day u will be looking to Mountain.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Start the thread in the start() method of the applet. If it still doesn't work, try making the animation thread sleep() a few seconds before starting the animation.

You also may need to load your images with a MediaTracker... The applet may be trying to animate your images before the images are completly loaded.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i want to animated the pic at applet like a gif