📄 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 + -