Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading images correctly

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 "" in a directory path of "C:\Java\bfv\bfv\bundles\". 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 ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic