Original Post
I have an applet program that loads images and displays them using AWT. It works as an applet but when I put a main method in my applet , and chose to run it as an application, I get an error that says I have a null pointer exception when I try to use getDocumentBase() for my images. Does anyone know why this is happening or do I have to include some code snippets to help get my problem across?