This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

repaint problem in jlabel

 
narasimharao konjeti
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I am replaing on Image(animated gif) on label. but it is not getting repainted...(means animating..) can u help me in this issue.
regards
nr konjeti
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are going to have to provide your code. Here is the code I used and it animates just fine.
 
Cathy Song
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am running Java 1.5.0_04 on windows xp.

I have one animated GIF file and a static GIF file. First I setIcon() to the
JLabel with the static GIF file. Before I perform some activities, I
setIcon() to the JLabel with the animated GIF file so that the user knows
some kind of process is going on. The label gets updated with the animated gif, but the gif looks static, i.e. the animation is lost....why is this happening?

-Cathy
[ August 16, 2005: Message edited by: Cathy Song ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic