Your Name: Applet1.java import java.applet.Applet; import java.awt.*; public class Applet1 extends Applet { /** * @param args the command line arguments */ public String UserName="Jdeveloper"; public void paint(Graphics g) { g.drawString("Hello:"+UserName,20,20); } public void setUserName(String UserName){ this.UserName = UserName; } public String getUserName(){ return UserName; } } 把下列代码加入…中: 把下列html代码加入…中:
Your Name: