by TheBigPJ <TheBigPJ@[EMAIL PROTECTED]
>
Apr 18, 2008 at 04:09 PM
> You don't check whether the file exists or the getImage succeeds. This
> is where your problem lies.
>
> I'd create a new File("./map.png") and check file.exists();
> I'd check that image.getHeight(null) <> -1;
>
> > =A0 =A0 =A0 =A0 g.drawImage(image, 0,0,this);
> > =A0 =A0 }
> > }
>
Thanks - I have implemented that into my code.