import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Midlet extends MIDlet implements Runnable { Display dsp; Form f; public Midlet() { dsp=Display.getDisplay(this); f=new Form(null); new Thread(this).start(); } public void startApp() { dsp.setCurrent(f); } public void run() { while(true) { f.append("Thread\n"); try { Thread.sleep(5000); } catch (Exception exc) { System.out.println("Fuck!!! Error!!!"); } } } public void pauseApp() { } public void destroyApp(boolean unconditional) { } }