请给我一个小程序的例子,并告诉我如何运行一个小程序,因为小程序没有main,我的IDE也没有运行它!请帮帮我。
发布于 2011-01-21 03:04:38
您应该从阅读本教程http://download.oracle.com/javase/tutorial/deployment/applet/开始
发布于 2011-01-21 03:06:33
参见Creating, Compiling, and Running an Applet。只需要创建一个HTML文件和您的.class文件,如下所示:
<html>
<p> This file launches the 'A' applet: A.class! </p>
<applet code="A.class" height=200 width=320>
No Java?!
</applet>
</html>https://stackoverflow.com/questions/4751298
复制相似问题