?? passgate.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("下一關(guān)",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 = "恭 喜 過 關(guān)";
private String greetings = "恭 喜 過 關(guān) !!!";
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);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -