import javax.microedition.lcdui.*; public class AppCanvas extends Canvas { protected void paint(Graphics g) { private int w= getWidth(); private int h=getHeight(); private int x=w-50; private int y=h-50; protected void paint(Graphics g) { g.setColor(255,255,255); g.fillRect(0,0,w,h); g.setColor(255,0,0); g.drawArc(x,y,100,100,0,0); } }