import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Head extends MIDlet { Form form; Display dsp = Display.getDisplay(this); public void myform(){ form = new Form("bs"); form.append("ôîðìà"); dsp.setCurrent(form); } public void startApp() { Canv c = new Canv(); dsp.setCurrent(c); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } public class Canv extends Canvas{ String str = "íaæaòü ía öeíòp"; public Canv() { setFullScreenMode(true); } public void paint(Graphics g) { g.setColor(0,0,0); g.fillRect(0,0,320,320); g.setColor(255,255,0); g.drawString(str,5,50,0); } public void keyPressed(int keyCode) { switch (keyCode) { case -5:myform();break; } } } }