?? tales.java
字號:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Tales extends MIDlet
implements CommandListener
{
private Command exitCommand;
private SFCanvas sfcan;
public Tales()
{
exitCommand = new Command("Exit", 7, 1);
SFCanvas sfcanvas = new SFCanvas();
sfcanvas.addCommand(exitCommand);
sfcanvas.setCommandListener(this);
Display.getDisplay(this).setCurrent(sfcanvas);
}
protected void startApp()
throws MIDletStateChangeException
{
}
protected void pauseApp()
{
try
{
sfcan.thread.wait();
}
catch (Exception exception) { }
}
protected void destroyApp(boolean flag)
throws MIDletStateChangeException
{
sfcan = null;
}
public void commandAction(Command command, Displayable displayable)
{
if (command == exitCommand)
notifyDestroyed();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -