• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Animated GIF

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I have put an animated GIF in a JLabel in the following manner.
ImageIcon ic1 = new ImageIcon("names.gif");
JLabel jl = new JLabel(ic1);
The Jlabel is placed on a Panel.
I have developed an application and I am showing the credits on an animated gif (names.gif).
I am setting the panel visibility on or off depending on the user action.
When the panel is set Visible again, the animated gif does not reload.
I would like to know the method by which the animated gif reloads so that it starts from first when the panel visibility is turned on.
I created a new instance of the ImageIcon everytime, the panel visibility is turned on, but in Vain........
I would be grateful, if you could kindly throw some light on the above matter.
Thanking you in advance,

Regards,
Arun Iyer
 
reply
    Bookmark Topic Watch Topic
  • New Topic