开发者

How to run Applet [closed]

开发者 https://www.devze.com 2023-02-05 14:46 出处:网络
It's difficult to tell what is 开发者_StackOverflow中文版being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its cu
It's difficult to tell what is 开发者_StackOverflow中文版being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

please give me an Applet example and say how yo run an applet because applets doesn't have main and my IDE doesn't run it! please help me.


You should start with reading this tutorial http://download.oracle.com/javase/tutorial/deployment/applet/


See Creating, Compiling, and Running an Applet. Just involves create an HTML file and your .class files like this:

<html>
 <p> This file launches the 'A' applet: A.class! </p>  
 <applet code="A.class" height=200 width=320>
 No Java?!
 </applet>
</html>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号