• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Animated Gif not displaying on JLabel on JToolbar

 
Greenhorn
Posts: 8
Eclipse IDE Firefox Browser Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much, i appreciate the help... i got it working like a charm...
 
reply
    Bookmark Topic Watch Topic
  • New Topic