import javax.microedition.lcdui.*; public class Graph extends Canvas { /** * constructor */ public Graph() { } /** * paint */ public void paint(Graphics g) { int width = g.getClipWidth(); int height = g.getClipHeight(); } /** * Called when a key is pressed. */ protected void keyPressed(int keyCode) { } }