?? helpscreen.java
字號:
import javax.microedition.lcdui.*;
public class HelpScreen extends Form implements CommandListener {
private Eliminator midlet;
private Command backCommand = new Command("Back", Command.BACK, 1);
public HelpScreen (Eliminator midlet) throws Exception {
super("Help");
this.midlet = midlet;
StringItem stringItem = new StringItem(null,
"It is the year 3023, many things have changed over the years " +
"including the Great Migration to Earth II. " +
"But the one thing that hasn't changed is the struggle for " +
"Power and Wealth. You are one the last remaning hopes " +
"to defend Earth II from total dominance by Evil Ruler named " +
"Zikron. You mission is to eliminate Zikron and his " +
"minions from the face of the Earth II"
);
append(stringItem);
addCommand(backCommand);
setCommandListener(this);
}
public void commandAction(Command c, Displayable d) {
if (c == backCommand) {
midlet.mainMenuScreenShow(null);
return;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -