If u got earror :- "Applet not initialised then try to include init() in your programe and initialise image into init() ie. init() { img=getImage(getCodebase,"my_img.jpg"); }
u have to put your image into the folder where u place your .class file because getCodeBase() returns the address of .class file and my_img.jpg is the name of image to display