import java.applet.Applet; import java.awt.*; public class Appelet extends Applet { String name; public void init () { name=getParameter("myName"); } public void paint(Graphics gr) { gr.drawString("欢迎学习java", 25,30); } }
原文:http://blog.csdn.net/u013922904/article/details/27178463