Problem with an easy applet
Hi, i'm starting to study applets, but i'm having problems since the beginnings...
I'm simply trying to print an image in this applet.
import java.applet.*;
import java.awt.Image;
import java.awt.Graphics;
publicclass provaextends Applet{
Image image;
publicvoid init(){
image = getImage(getDocumentBase(),"0.jpg");
}
publicvoid paint(Graphics g){
g.drawImage(image, 0, 0,this);
}
}
and this is the file.html
<applet code="prova.class" width="250" height="250">
</applet>
What's wrong?
thanx in advance :-)

