This code won't work, has anything changed for Java 1.6?
Error message Exception in thread "main" java.lang.NullPointerException
It's like it can't find the image, I have placed image.gif, and, image.jpg within the same directory where the source code is compiled and run, and, I have tried compiling on Eclipse 3.6.2, and, on TextPad. Also, any idea which image formats (e.g. jpg, gif, png etc) does Java and which libraries support reading these formats?