I know I sound like a compelete novice when I say this, but I just cant draw Images in java appliactions. I copied the code right from Sun's website and added an image to the codes base, and yes, the file names where the same. It failed to load. When I tried to use a just a URL, it didn't work either. I am not a Java novice, I understand the Swing API, and the Abstract Window Toolkit, but I cant seem to load images. I will run the applet/appletication but the image does not appear.
To see if the image was not laoding i tried
if (Image_name_her e == null){
g.setColor(Colo r.yellow);
g.drawString("E rror");
}
it didn't draw the Error message, someone guide me thought the basics.
Thanks
To see if the image was not laoding i tried
if (Image_name_her e == null){
g.setColor(Colo r.yellow);
g.drawString("E rror");
}
it didn't draw the Error message, someone guide me thought the basics.
Thanks
Comment