wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes animated gif as label Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "animated gif as label Image" Watch "animated gif as label Image" New topic

animated gif as label Image

nabi bux
Ranch Hand

Joined: Mar 14, 2005
Posts: 73
Hi java user Iam working on prject in i want
to make some animation on label i have designed some animated gif file
i want to use them as label image but programe become hang
if i used simple gif file then they appear on label what is wrong
with gif aniamated picture please help?
Brian Cole
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
I'm not sure how starting this thread is going to help you any more than the old one did, but I'll say again that animated GIFs work fine.

Go ahead and run this code and see for yourself:

That's using one of JavaRanch's animated GIFs. If it works with that one but not the ones you have created, I think I would first look at how you are creating your animated GIFs.

bitguru blog
Don't get me started about those stupid light bulbs.
subject: animated gif as label Image
Similar Threads
Java Startup Animation before an applet loads.
How many of you find this funny
repaint problem in jlabel
combine gif images to animated gif images
Rotating image in JLabel