After creating the MIDlet project, you can create MIDlets for the project.
Select File > New > Java ME MIDlet to display the Java ME MIDlet screen.
Figure: Creating new Java MIDlet
Click Finish. This creates the MIDlet class.
Add code to the MIDlet class and save the changes.