作者在 2007-03-23 03:29:00 发布以下内容
import java.awt.Graphics;
public class HelloToJava extends java.applet.Applet
{
/**Initialization method that willbe calledafter thetheappletis loaded
* into the browser.
*/
public String sHello;
public void init()
{
//TODO start asynnchronous download of heave resources
sHello="欢迎来到Java世界!";
}
public void paint(Graphics g)
{
g.drawString(sHello,50.50);
}
//TODOoverwrite start(), stope() and destroy() menthods
}