?? mb.java
字號(hào):
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class MB extends MIDlet implements CommandListener
{
private Display dis;
private Form frm;
private Command cmdexit;
public MB()
{
dis=Display.getDisplay(this);
frm=new Form("MB");
StringItem str=new StringItem("hello word","");
frm.append(str);
cmdexit=new Command("Exit",Command.OK,0);
frm.addCommand(cmdexit);
frm.setCommandListener(this);
}
public void commandAction(Command c, Displayable d)
{
if(c==cmdexit)
destroyApp(true);
}
public void startApp() throws MIDletStateChangeException
{
dis.setCurrent(frm);
}
public void destroyApp(boolean unconditional)
{
notifyDestroyed();
}
public void pauseApp()
{}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -