Dear Readers, I know I am a bit late in answering this but all the same since I had another idea. Instead of using exact pathnames use relative pathnames. Store the images in a folder called images in the same directory as the class files. Then use relative path like this:
That only works if the "working directory" for your running program is the same as the location of your class files. If you use classpath resources, it will work no matter where your classes are running.
James Carman, President<br />Carman Consulting, Inc.