Jay H
Senior HTF Member
Image img = getImage(getDocumentBase(),Input_name);
if (img == null) System.out.println("Bongo for Mongo");
Input_name is simply a String taken from a PARAM earlier on.
Now the idea here is that if for some reason, Input_name doesn't exist in the applet base directory, typo or otherwise, that I'd be able to display a "file not found" type of image on my applet. However, I cannot seem to catch the failure to load the image. All my documentation states that getImage(URL,String) shall return a new thread with the image if found and null if not. So how come I'm never getting that System msg? I've tried to TRY and CATCH it but that doesn't work and it seems getImage is returning something whether it finds Input_name or not?
Any ideas? I've even tried img.equals(null) and that doesn't work.
Jay