forked from GeethaCharan-323/MADlab
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathP2_1.java
More file actions
32 lines (26 loc) · 663 Bytes
/
P2_1.java
File metadata and controls
32 lines (26 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class P2_1 extends MIDlet{
private Display display;
private List list;
public P2_1(){
super();
}
public void startApp(){
//2_1 is simply displaying the menu without commands
display=Display.getDisplay(this);
list=new List("MENULIST",List.IMPLICIT);
list.append("cut",null);
list.append("copy",null);
list.append("paste",null);
list.append("delete",null);
list.append("select_all",null);
list.append("unselect_all",null);
display.setCurrent(list);
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
notifyDestroyed();
}
}