I want to load an image to an applet but I keep getting a nullpointerexception whenever I run my program. Here is the code I am using to load the image. Please help.
img = getImage(getDocumentBase(), getParameter("questionmark2.jpg"));
g.drawImage(img, 100, 100, this);