Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package zadanie2linie;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.midlet.*;
- /**
- * @author Let
- */
- public class Midlet extends MIDlet implements CommandListener {
- public Plotno plotno;
- private Command cmd;
- Display ekran;
- public Midlet(){
- plotno= new Plotno();
- cmd = new Command("Koniec",Command.EXIT,0);
- plotno.addCommand(cmd);
- plotno.setCommandListener(this);
- }
- public void startApp() {
- ekran = Display.getDisplay(this);
- ekran.setCurrent(plotno);
- }
- public void pauseApp() {
- }
- public void destroyApp(boolean unconditional) {
- }
- public void commandAction (Command c, Displayable d){
- if (c == cmd){
- notifyDestroyed();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement