connecter.java

来自「用JAVA写的」· Java 代码 · 共 49 行

JAVA
49
字号
// FrontEnd Plus GUI for JAD
// DeCompiled : connecter.class
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;

public class connecter extends MIDlet
    implements CommandListener
{

    Display display;
    gamemain mgc;

    public connecter()
    {
        display = Display.getDisplay(this);
    }

    public void startApp()
    {
        if(mgc == null)
        {
            mgc = new gamemain();
            display.setCurrent(mgc);
            mgc.start();
        }
    }

    public void commandAction(Command command, Displayable displayable)
    {
        String s = command.getLabel();
        if(s.equals("start"))
            mgc.start();
        else
        if(s.equals("end"))
        {
            mgc.exit();
            notifyDestroyed();
        }
    }

    public void pauseApp()
    {
    }

    public void destroyApp(boolean flag)
    {
    }
}

⌨️ 快捷键说明

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