/**
* @(#)HelloApplet.java
*
* HelloApplet Applet application
*
* @author
* @version 1.00 2010/1/18
*/
import java.awt.*;
import java.applet.*;
public class HelloApplet extends Applet {
public void init() {
}
public void paint(Graphics g) {
g.drawString("Welcome to Java!!", 50, 60 );
}
}
<html>
<head>
</head>
<body bgcolor="000000">
<center>
<applet
code = "HelloApplet.class"
width = "500"
height = "300"
>
</applet>
</center>
</body>
</html>