Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Animated Gif not displaying on JLabel on JToolbar

 
George Nieuwoudt
Greenhorn
Posts: 8
Eclipse IDE Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
George Nieuwoudt
Greenhorn
Posts: 8
Eclipse IDE Firefox Browser Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, i appreciate the help... i got it working like a charm...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic