java - How to load an image to an applet? -


i want load image applet keep getting nullpointerexception whenever run program. here code using load image. please help.

img = getimage(getdocumentbase(), getparameter("questionmark2.jpg")); g.drawimage(img, 100, 100, this); 


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -