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|Toolkit] (well actually, just what we really need).


[{ Sequence title='DrawingSequence4'

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

}]