Wakhok.java



import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class Wakhok extends MIDlet {
    public WakhokCanvas canvas;

    public void startApp() {
            canvas = new WakhokCanvas();
            Display.getDisplay(this).setCurrent( canvas );
    }

    public void pauseApp() {
    }

    public void destroyApp( boolean b ) {
    }

    class WakhokCanvas extends Canvas {

        public int w;
        public int h;

        public void paint( Graphics g ) {
            w = getWidth();
            h = getHeight();
            g.setColor( 0, 255, 255 );
            g.fillRect( 0, 0, w, h );
            g.setColor( 0, 128, 0 );
            g.fillRect( 0, h/2, w, h/2 );
            g.setColor( 128, 0, 0 );
            g.fillRect( w/6, h/4, (w*2)/3, h/2 );
        }
    }
}