import javax.microedition.lcdui.*; public class Canvas1 extends Canvas{ public Canvas1(){ } public void paint(Graphics g){ g.drawString("Это первый экран"); repaint(); } public void keyPressed(int keyCode){ if (keyCode==KEY_NUM5) Main.link.display.setCurrent(Main.link.canvas2); } }