Deployment of cross platform application
I am pretty new to Java and have programmed an applet (or tray) application in netbeans using it's tools. The program uses three separate images for different states of it's tray icon. As a web developer I have run into a very uncomfortable dilemna: I don't know how to property distribute the application!
The biggest problem is the images. At first I thought they could just be next to my applications jar file and later I could get a fancier install working (like maybe using nullsoft on windows). The problem is that I don't know how to tell my java to look just in the folder of my programs jar (since they could extract the files anywhere). I ignorantly thought that if you didn't include a full path when referencing an image, then the relative path would start from where the program jar is located. It appears that the relative path is actually from wherever the user is executing that jar from. Any help?
Ideally I would just put the images in a jar, but that has proven difficult. I created just a jar with the images, imported it into my project, but am clueless how to reference it. I wish netbeans would let you add images to a jar file, or to your project, and there was some easy way to reference it. Then this whole problem would be solved for me.
What do you guys do?

