public class TestApplet extends Applet
{ public void init() {
}
public void paint(Graphics g)
{
g.drawString("Hello world!",60,20);
}}
{ public void init() {
}
public void paint(Graphics g)
{
g.drawString("Hello world!",60,20);
}}
<html>
<head>
<title>This is a test of Applet</title>
</head>
<body>
<Applet
code="TestApplet"
alt="java not supported"
width=300
height=200>
</Applet>
</body>
</html>
这是我的第一个applet小程序,帮帮我,谢谢