java小应用程序

作者在 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

}

 

 

 

默认分类 | 阅读 1526 次
文章评论,共0条
游客请输入验证码
浏览20009次
文章分类
最新评论