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 :-)

[1265 byte] By [Zykera] at [2007-11-27 6:16:19]
# 1
Could you possibly provide some more information? Please?You should start by telling us what the symptoms of wrong include like- it doesn't compile- it doesn't want to run- unexpected results
cotton.ma at 2007-7-12 17:27:49 > top of Java-index,Java Essentials,Java Programming...
# 2
I'm sorry.It does compile. when i double-click the .html file the browser (Mozilla Firefox) says "applet started", but no images are shownMessage was edited by: Zyker
Zykera at 2007-7-12 17:27:49 > top of Java-index,Java Essentials,Java Programming...
# 3
just curious why you use applets rather than japplets?
petes1234a at 2007-7-12 17:27:49 > top of Java-index,Java Essentials,Java Programming...
# 4
just because i know nothing about applets or japplets :sthanx for the suggestionanyway, i can draw String, add buttons, but can't draw Image..
Zykera at 2007-7-12 17:27:49 > top of Java-index,Java Essentials,Java Programming...