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>
精彩评论