appletclass.java

来自「eclipse cookbook the source code of the」· Java 代码 · 共 38 行

JAVA
38
字号
/*
 * Created on Mar 2, 2004
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
 
package org.cookbook.ch08;

import java.applet.Applet;
import java.awt.*;


public class AppletClass extends Applet {

    public void init()
    {
        setBackground(Color.white);
    }

    public void start()
    {
    }

    public void paint(Graphics g)
    {
        g.drawString("Greetings from Applets.", 40, 100);
    }

    public void stop()
    {
    }

    public void destroy()
    {
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?