problem with images
Hey,
Im really new to xcode and im having some trouble just getting an image to display in an applet. I also use jcreator on a pc and this is the code i use for that:
Image img;
<init>
img = getImage(getCodeBase(),"test.png");
<paint>
g.drawImage(img,0,0,this);
when i typed it out in xcode it didnt display the image.
I think what is wrong is the image im using is not in the right place.. so where should you save the image to?
would appreciate any help on this topic, thanks.
An eye for an eye will only make the whole world blind
-Gandhi
|