import javax.microedition.lcdui.*; public class Menu extends Canvas { private Graphics g; private int w,h; private Image logo; public Menu() { try { logo=Image.createImage("/logo.png"); } catch (Exception exc) {} repaint(); } public void paint(Graphics g) { w=g.getClipWidth(); h=g.getClipHeight(); g.setColor(0,0,0); g.fillRect(0,0,w,h); g.drawImage(logo,w/2,h/2,Graphics.BOTTOM|Graphics.HCENTER); } }