File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Question about gif image and AWT (Threads) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Question about gif image and AWT (Threads)" Watch "Question about gif image and AWT (Threads)" New topic
Author

Question about gif image and AWT (Threads)

Henrik Engert
Ranch Hand

Joined: Apr 26, 2005
Posts: 70
Hi,

I want to be able to show a gif image that spins (like a progress). I am able to show the gif image and it is working like it should, but as soon as I do some heavy computing the gif animation stops.

I have tried to somehow put the gif image in a seperate thread but it still does not work.

How would you go about fixing this issue?

Thanks.


SCJP 5.0, SCWCD
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
put the "heavy computing" in a separate thread
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

If you are using so much processing that a 5K gif image won't spin, then the solution is probably solved easier with a dual-core processor than Java threading.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about gif image and AWT (Threads)