Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
DealerTimer - DealerTimerMidlet.java

DealerTimerMidlet.java

Caricato da:
Scarica il programma completo

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. package dealertimer.graphics;
  7.  
  8. import java.io.IOException;
  9. import javax.microedition.lcdui.Display;
  10. import javax.microedition.media.MediaException;
  11. import javax.microedition.midlet.*;
  12.  
  13. /**
  14.  * @author Paolo
  15.  */
  16. public class DealerTimerMidlet extends MIDlet {
  17.     public void startApp() {
  18.         try {
  19.             Display display = Display.getDisplay(this);
  20.             TimerCanvas canvas = new TimerCanvas(display);
  21.             display.setCurrent(canvas);
  22.         } catch (IOException ex) {
  23.             ex.printStackTrace();
  24.         } catch (MediaException ex) {
  25.             ex.printStackTrace();
  26.         }
  27.     }
  28.  
  29.     public void pauseApp() {
  30.         this.notifyPaused();
  31.     }
  32.  
  33.     public void destroyApp(boolean unconditional) {
  34.         this.notifyDestroyed();
  35.     }
  36. }