• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Loading images correctly

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
What is the best way to load images used for component icons. I put some key values in a file named "resource.properties" in a directory path of "C:\Java\bfv\bfv\bundles\resource.properties". My classes reside in "C:\Java\bfv\bfv\". The actuall images reside in "C:\Java\bfv\bfv\images\"
This works but in order to get the images I have to do this...

Can you show me a more efficient way to do this. I've seen a lot of examples that use ...

... but this didn't work for me. Eventually I want to run this an a executable jar so I know my directory structure is important. Is my directory structured correctly to do this? Thanks for your help.
[ March 09, 2004: Message edited by: Chris Ramsey ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic