The main idea is to use an applet to run the MIDLet application.
The [Java ME (javax.microedition.*)|http://www.oracle.com/technetwork/java/javame/overview/index.html] packages need to be reimplemented using [AWT|http://en.wikipedia.org/wiki/Abstract_Window_Toolkit] (well actually, just what we really need).


[{ Sequence title='DrawingSequence4'

canvas.flushGraphics  {
   applet.repaint   {
     applet.paint   {
      applet.update   {
       graphics.drawImage {
       }
        
      }
    }
  }
}

}]