It's a very simple program:
import javax.swing.JApplet;
import java.awt. Graphics;
public class WelcomeApplet extends JApplet
{
public void paint(Graphics g)
{
super.paint(g);
g.drawString("Welcome to Java!", 100,100);
}
}
and the html :
<html>
<body>
< applet code = "WelcomeApplet.class" width= "500" height= "300">
</applet>
</body>
</html>
The output that appears once it is loaded either in Mozilla or Chrome:
< applet code = "WelcomeApplet.class" width= "500" height= "300">
Please, help.