I'm pretty new to java, I'm trying to detect if an image gets loaded or not, don't know how to do that. I thought by catching the url command it would do it but if you link to an image that doesn't exist it doesn't throw and exception. How can I either detect if url was correct or if icon exists? Thanks
java.net.URL where = new URL("http://www.domain.com/testimage.jpg");
ImageIcon icon = new ImageIcon(where);