I need to load an image in my program, but I keep getting this error:
C:\Documents and Settings\Remy B\Desktop\programming\Java\Java Projects\NurseGUI\GraphPanel.java:30: cannot resolve symbol
symbol : variable danger
location: class GraphPanel
danger = getImage(getDocumentBase(), "danger.jpg");
I'm assuming this is because you can only use getDocumentBase with applets? I googled, but I couldn't find a way to do the same thing if you aren't using an applet.