import javax.microedition.lcdui.*; public class Canvas2 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.canvas1); } }