• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading images correctly  RSS feed

Chris Ramsey
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!