The main idea is to use an applet to run the MIDLet application.
The javax.microedition.* packages need to be reimplemented using AWT (well actually, just what we really need).