i'm writing a simple applet to draw on the screen and then save the drawing as a jpg file. i'm have a problem when i create a blank image using
Image img = this.createImage(width, height);
Graphics g = img.getGraphics(); //fails here <--------------
the error i get is "Null Pointer exception"
i copied exactly what i found on some tutorial...what could be the problem?
(im using Java 2, with jbuilder 6 enterprise on win2000 machine)