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

📄 passgate.java

📁 手机拼图游戏:J2ME游戏
💻 JAVA
字号:
/**
 * Created by IntelliJ IDEA.
 * User: robai
 * Date: 2007-2-25
 * Time: 12:42:27
 * To change this template use File | Settings | File Templates.
 */
import javax.microedition.lcdui.*;
import java.io.IOException;

public class PassGate extends Alert
{
    public static Command comdCancel = new Command("退出",Command.BACK,1);
    public static Command comdComit = new Command("下一关",Command.SCREEN,2);
    public static Command comdAmusement = new Command("休息一下",Command.SCREEN,2);
    public static String ImageFinish = "/img/wan.jpg";
    public static String ImageNextGate = "/img/next.jpg";

    public static String TITLE = "恭 喜 过 关";

    private String greetings = "恭 喜 过 关 !!!";

    public PassGate()
    {
        super(PassGate.TITLE);
        this.addCommand(comdCancel);
        this.addCommand(comdComit);
        this.addCommand(comdAmusement);
        this.setTimeout(Alert.FOREVER);
        this.setString(greetings);
    }
    public void setImage(String path)
    {
        try
        {
            Image image = Image.createImage(path);
            this.setImage(image);
        }catch(IOException e)
        {
            System.out.println(e);
        }

    }
}

⌨️ 快捷键说明

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