58,454
社区成员
发帖
与我相关
我的任务
分享
package com.aplsc.samples;
import javax.swing.*;
import java.awt.*;
public class MyApplet extends JApplet {
public void paint(Graphics g)
{
g.drawString("Hello World!",5,35);
}
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Hello Applet!</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<applet
code="MyApplet.class"
width=200
height=100>
</applet>
</html>
code="com.aplsc.samples.MyApplet.class"
code="MyApplet.class"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Hello Applet!</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<applet
code="com.aplsc.samples.MyApplet.class"
width=200
height=100>
</applet>
</html>