Creating a new MIDlet

  1. Right click on the LWUITApplication project in the Projects view and select New > Midlet.

  2. In the New Midlet dialog, specify the Midlet details and click Finish.

  3. Expand the project and go to Source Packages > <default package> and double-click <yourMIDlet>.java file (in this example, Midlet.java) to open it in the source editor.

  4. In the source file (<yourMIDlet>.java), replace javax.microedition.midlet.* wildcard import with javax.microedition.midlet.MIDlet. This is necessary because there are some conflicting class names in LCDUI and LWUIT, such as Display.