?? listtest.java
字號:
//ListTest.java
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ListTest extends MIDlet
{
private Display display;
public ListTest()
{
display = Display.getDisplay(this);
}
public void startApp()
{
List l = new List("ListTest",Choice.EXCLUSIVE) ;
//List l = new List("ListTest",Choice.MULTIPLE) ;
//List l = new List("ListTest",Choice.IMPLICIT) ;
l.append("Item 1",null) ;
l.append("Item 2",null) ;
l.append("Item 3",null) ;
l.append("Item 4",null) ;
display.setCurrent(l) ;
}
public void pauseApp()
{ }
public void destroyApp(boolean unconditional)
{ }
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -