?? helloworld.java
字號:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloWorld extends MIDlet implements CommandListener {
private Display display;
public static final Command exitCommand = new Command("退出",Command.EXIT,1);
public HelloWorld() {
}
public void startApp() {
if(display == null)
{
display = Display.getDisplay(this);
}
TextBox t = new TextBox("Netbeans", "出色的Java開發工具", 256, 0);
display.setCurrent(t);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command cmd,Displayable displayable){
if(cmd == exitCommand){
destroyApp(false);
notifyDestroyed();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -