SHARE
TWEET

Untitled

a guest Dec 11th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package pum_lab04;
  2.  
  3. import javax.microedition.midlet.*;
  4. import javax.microedition.lcdui.Command;
  5. import javax.microedition.lcdui.CommandListener;
  6. import javax.microedition.lcdui.Display;
  7. import javax.microedition.lcdui.Displayable;
  8.  
  9. public class PUM_lab04 extends MIDlet implements CommandListener {
  10.    
  11.     private Plotno plotno;
  12.     private Command cmd;
  13.     private Display ekran;
  14.    
  15.     public PUM_lab04() {
  16.         plotno = new Plotno();
  17.         cmd = new Command("Koniec", Command.EXIT, 0);
  18.         plotno.addCommand(cmd);
  19.         plotno.setCommandListener(this);
  20.     }
  21.    
  22.     @Override
  23.     public void startApp() {
  24.         ekran = Display.getDisplay(this);
  25.         ekran.setCurrent(plotno);
  26.     }
  27.     public void pauseApp() {
  28.     }
  29.    
  30.     @Override
  31.     public void destroyApp(boolean unconditional) {
  32.     }
  33.    
  34.     public void commandAction(Command c, Displayable d) {
  35.         if (c == cmd)
  36.         {
  37.             //destroyApp(false);
  38.             notifyDestroyed();
  39.         }
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top