Referencing a file in the same folder as my programs jar.
I have some images that my application uses and am having a very hard time figuring out how to best reference them. I want it so that my program can be anywhere on the HD as long as it's in one folder. The problem with this is that when I try and reference my images using just the image name, it seems to assume that the user is starting from their home directory. I need a way to make a relative reference to the images in the same directory as my program.
Any ideas?

