games
pages
posts

iconJavaAllefant

2000-01-01

{{{ #!CPP import javax.microedition.midlet.MIDlet; import javax.microedition.lcdui.Display;
/* Our Java midlet, here everything begins. */ public class MyMIDlet extends MIDlet {
private MyGameCanvas canvas;
public MyMIDlet() { canvas = new MyGameCanvas(); }
/* This is called whenever the midlet is activated. */ public void startApp() { Display display = Display.getDisplay(this); canvas.setFullScreenMode(true); canvas.start(); display.setCurrent(canvas); }
public void pauseApp() { }
public void destroyApp(boolean unconditional) { } } }}}