import javax.microedition.lcdui.*; import javax.microedition.midlet.MIDlet; public class Canv extends Canvas { public SlideShow slideshow; /** * constructor */ public Canv(SlideShow slideshow) { this.slideshow=slideshow; } /** * paint */ public void paint(Graphics g) { g.drawImage(slideshow.image, 0, 0, 1); } /** * Called when a key is pressed. */ protected void keyPressed(int keyCode) { } }