Sunday, October 21, 2007

HelloWorld using NetBeans' Visual Mobile Designer (VMD)

1 - Choose File > New Project. Under Categories, select Mobility. Under Projects, select MIDP Application and click Next.

2 - Enter HelloWorld or what you want in the Project Name field. Change the Project Location to any directory on your system.

3 - Check the Set as Main Project and Create Hello MIDlet check boxes. Click Next.
4 - Leave the J2ME Wireless Toolkit as the selected Target Platform. Click Next.
5 - Expand "Configuration templates provided by installed CLDC platforms" and your target Wireless Toolkit folders. Check the boxes next to each of the configurations.
6 - Click Finish. The application itself is displayed in the Flow Design window of the Visual Mobile Designer.
7 - Click on Screen.This opens the Screen Designer window, and displays the Device screen, which is the only screen available in the application.

8 - In the Properties window, click in the Text field and type in some new text.
9 - Choose Run > Run Main Project (F6) from the Run menu. A device emulator opens to display the results of the executed MIDlet.

10 - In the device emulator window, click on the button below the Launch command. The device emulator launches the MIDlet. That's my first HelloWorld.

11 - Click on the button below Exit to close the MIDlet. Then click on the button in the upper right corner of the device to close the emulator window.