Developing for the 
Motorola T720 Handset  
 
21 
Creating Programs 
This section explains how to use the CodeWarrior™ IDE to create MIDlets. A MIDlet is a 
Java™ application that conforms to two specifications defined by Sun® Microsystems: 
•  the Connected, Limited Device Configuration (CLDC) and  
•  the Mobile Information Device Profile (MIDP) 
These specifications define requirements that Java applications must adhere to in order to 
run on a mobile device. Mobile devices that can run MIDlets have several common 
attributes: 
•  some level of network connectivity 
•  limited screen size  
•  relatively low memory  
•  relatively low processing power 
Cellular phones and pagers are good examples of devices that have these characteristics. 
The CLDC and MIDP specifications address the limitations of these devices. 
CodeWarrior Wireless Studio provides two ways to create a MIDlet project. You can 
create a MIDlet project based on stationery, or you can create a project by using a 
CodeWarrior wizard. Both of these methods create a project that is configured to use the 
CLDC and the MIDP. 
For more information, see the CodeWarrior IDE User Guide. 
Using MIDlet Stationery to Create a Project 
The CodeWarrior IDE includes Java J2ME stationery that contains the base files and 
default settings required to build a MIDlet project. You can create a new project based on 
this stationery and then modify project settings and files to suit your needs.  
To create a new MIDlet project from stationery: 
1  Select File > New from the main menu bar. 
The CodeWarrior IDE displays the New window (Figure 3).