This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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 "" 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
Boost this thread!