using image paths in Java within NetBeans or another IDE
Posted on 2006-03-28
I'm working with an application that requires me to load image files from a folder. The current code uses the following statements to set image paths,
This is supposed to allow a user to place the images folder at the same level as the working directory. For example, if the working directory is,
then the images folder would be placed at,
The problem is that I've tried this in NetBeans and other IDEs and it will not load the image files. In NetBeans, for example, I would place the image files in the run folder det for the project, but this still will not load the images. Does anybody know why this might be happening, and how to solve this problem?
Thanks for the help