As far as I know, getImage() is supporting certain format only.
(Read the API). If you want to display the BMP format, I think
you need to get additional codec classes. (http://java.sun.
com/products/java-media/jai/iio.html)
Try to change the bmp file to any JPG. It sure will work.