Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Animated Gifs & Thread safety

843804Oct 24 2004 — edited Oct 30 2004
Hi,
While using the utility to monitor updates to swing components in a non-threadsafe manner from http://www.clientjava.com/blog/2004/08/31/1093972473000.html I noticed that when using animated gifs, this utility churns out errors from the sun ImageFetcher class.

It looks like the sun methods to animate animated gifs run on a thread named "Image Animator", which calls a JLabel.setIcon() method, not on the event dispatch thread.

Im sure that suns classes animate gifs in a safe way, but could anyone explain how?

Many thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2004
Added on Oct 24 2004
3 comments
250 views