j2me project in netbeans IDE by R4R Team

Creating a MIDP/CLDC Application:(step by step):
Choose File > New Project (Ctrl+Shift+N). Under Categories, select Java ME. Under Projects, select Mobile Application and click Next.

Ā .Enter HelloĀ in the Project Name field. Use the default Project Location, or change it to the directory you prefer on your system. In this tutorial .we refer to this directory as $PROJECTHOME.

.Check the Set as Main Project and Create Hello MIDlet check boxes (both are checked by default). Click Next.
.Select the default as the emulator platform and use the remaining defaults. Click Finish.
The IDE creates the $PROJECTHOME/Hello project folder. The project folder contains all of your sources and project metadata, such as the project Ant script. The application itself is displayed in the Flow Design window of the Visual Mobile Designer.


Editing the Java Source Code as you want:
Now let's edit the text displayed by the MIDlet.

Under HelloMIDlet.java click Screen to show the Screen Designer window diplaying the Device Screen, which is the only screen available in the application.
Click the Hello World! message in the Device Screen. In the Properties window click the Hello World! text to change the welcome message text and press Enter. In this example we typed hello my friend.

Ā The Screen viewĀ displays a preview of the text you enter in the Text field.



Compiling and Running the Project:Choose Run > Run Main Project (F6) from the Run menu. Follow the progress of the project compilation in the Output window. Note that the HelloMIDlet.java file is built before it is executed. A device emulator opens to display the results of the executed MIDlet. The device emulator launches the MIDlet and displays the text you entered in the source code.
Tip: You can specify the emulator to run the MIDlet on by right-clicking the project node and selecting Run With.. from the contextual menu. The DefaultFXPhone1 available in the Java ME SDK 3.0 is shown below.

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.
Ā
note :now you use netbeans IDE ,and create new mobile application as you want.....

Leave a Comment:
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!