PPT Slide
Test.java
import java.applet.Applet;
import java.awt;
public class Test extends Applet{
String name;
public void init ( ){
if (name= =null){
name= ¨null¨;
}
}
public void paint(Graphics g){
g.drawString( just for ¨+name + ¨ ! ! ! ¨,10,30);
}
}
Test. .html
< HTML> <HEAD>
<TITLE>Test </TITLE>
</HEAD><BODY>
<APPLET CODE= ¨Test.class¨
WIDTH=200, HEIGHT =100>
<PARAM NAME =¨name¨
VALUE=¨test ¨>
</APPLET></BODY>
</HTML>
Previous slide
Next slide
Back to first slide
View graphic version