This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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)
 
Similar Threads
Runtime getRuntime() exec(String command) - How does this work?
Loading Image
J2SE 1.5 Image I/O unable to write gif files?
How do i go about displaying text and graphic files in java?
How to pass different request Parameters