?? menulist.java
字號:
/*
* Author:wangfeng
* Version:1.0
* CreateDate:2007-02-23
* Description:the class is the main class for Spell picture
*/
import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.*;
import java.io.*;
public class MenuList extends List
{
public static Command comdConfirm = new Command("確定",Command.SCREEN,2);
public static Command comdBack = new Command("返回",Command.BACK,1);
public static int SELECT_NEWGAME = 0;
public static int SELECT_PACEIN =1;
public static int SELECT_DESC = 2;
private static String title = "FW拼圖游戲";
public MenuList()
{
super(MenuList.title,Choice.IMPLICIT);
this.addCommand(comdConfirm);
this.addCommand(comdBack);
try
{
this.append("新游戲",Image.createImage("/img/Icon.jpg"));
this.append("游戲排行",Image.createImage("/img/Icon.jpg"));
this.append("游戲說明",Image.createImage("/img/Icon.jpg"));
}catch(IllegalArgumentException e)
{
System.out.println(e);
}
catch(IOException e)
{
System.out.println(e);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -