⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pinguenterhigh.java

📁 j2me_nokia_flash打企鹅手机版
💻 JAVA
字号:
import javax.microedition.lcdui.*;

// Referenced classes of package ys.pingu:
//            PinguScores, PinguMIDlet

class PinguEnterHigh extends Form
    implements CommandListener
{

    private final PinguMIDlet parent;
    private final Command saveCommand = new Command("Save", 4, 0);
    private TextField name;
    private int hscore;

    PinguEnterHigh(PinguMIDlet pingumidlet, int i)
    {
        super("Enter your name");
        parent = pingumidlet;
        hscore = i;
        append(new StringItem("Your score", " " + i / 10 + "." + i % 10));
        name = new TextField("Your name", null, 30, 0);
        append(name);
        addCommand(saveCommand);
        setCommandListener(this);
    }

    public void commandAction(Command command, Displayable displayable)
    {
        PinguScores.setScore(hscore, name.getString());
        parent.pinguEnterHighFinished();
    }
}

⌨️ 快捷键说明

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