1.利用记事本在
(1)打开记事本,输入以下代码:
importjava.awt.*;//指定要使用的Package
importjava.applet.*;
publicclassStartAppletextendsApplet//
{
publicvoidpaint(Graphicsg)
{
g.drawString(“
}
}
(2)选择保存的位置在
(3)在命令提示符下输入
2.利用记事本创建index.htm文件
(1)进入D:\javaExecise文件夹
(2)打开记事本,网站空间,输入以下代码:
<html>
<body>
<appletcode=StartApplet.classwidth=200height=100>
</applet>
</body>
</html>
(3)另存为index.htm
3.利用
(1)打开命令提示符窗口
(2)在命令提示符下输入以下命令:
C:\DocumentsandSettings\Administrator>d:
D:\&;cdjavaExecise
D:\javaExecise>appletviewerindex.htm
(3)在打开的
4.利用
(1)打开D:\javaExecise文件夹
(2)在
,香港空间,香港服务器向上攀爬的。