wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Animated Gif not displaying on JLabel on JToolbar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Animated Gif not displaying on JLabel on JToolbar" Watch "Animated Gif not displaying on JLabel on JToolbar" New topic
Author

Animated Gif not displaying on JLabel on JToolbar

George Nieuwoudt
Greenhorn

Joined: Nov 24, 2011
Posts: 8

Hi,

I have a issue where my animated gif does not display when added to a jtoolbar, am i doing it wrong or am i missing a concept?

Code Below:
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Start small. Write a GUI with just one JLabel added to a JFRame, with an ImageIcon with a hardcoded path. But first, go through Loading Images Using getResource.

Your toString() calls are entirely redundant, and only add clutter. The value of a String concatenation expression is a String, and it's toString() method returns the String itself.


luck, db
There are no new questions, but there may be new answers.
George Nieuwoudt
Greenhorn

Joined: Nov 24, 2011
Posts: 8

Thank you very much, i appreciate the help... i got it working like a charm...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Animated Gif not displaying on JLabel on JToolbar
 
Similar Threads
displaying animated GIFs in jdk 1.2.2
GIF Image
Animated gif not getting animated in JLabel
Animated GIF
animated gif as label Image