NetBeans Java ME CDC Development Quick Start Guide
Connected Device Configuration (CDC) applications are designed to run on mobile and embedded devices with at least 2MB of memory. This configuration supports a more feature-rich JVM than MIDP-based mobile phones, which typically have much less memory and use the Connected Limited Device Configuration (CLDC). This tutorial shows you how to use NetBeans IDE to create a Java Platform, Micro Edition (Java ME platform) CDC application. We show you how to create a Java ME CDC project that displays a simple form in a device emulator for the three available CDC profiles. This document is designed to get you creating applications as quickly as possible.
To complete this tutorial, you need the following software and resources:
The IDE installer for the Windows operating system includes the Java ME SDK 3.2 which allows you to develop CDC applications. Note that different CDC emulator platforms support different development profiles. The main development profiles and the emulators that support them are:
In the following sections we create a CDC project using each available profile and also use the IDE's GUI builder in the Personal and AGUI profile applications to enhance the User Interface.
Here we create a CDC Application for the Personal Basis Profile (PBP) 1.1 Profile using the Java ME SDK 3.2.
You can also debug the project and create tests for CDC projects using the JUnit framework.
Creating a New CDC Application - Personal Profile
Here we create an applet for the Personal Profile using the Nokia Series 80 Platform SDK for Symbian OS, for Java, Personal Profile. The Sony Ericsson platform also supports the Personal Profile.
Creating the Application Interface Using the GUI Builder
You can use the GUI Builder in the same way you use it for regular J2SE development. In the GUI Builder, right-click the Main.java form and choose Set Layout > Free Design. Then drag and drop components from the Palette window into the Design Area of the GUI Builder.
Note: Make sure you only use AWT components in your form. Since all the Nokia Series 80 devices support the Personal Profile, only AWT widgets are available.
For more information on using the IDE's GUI Builder, see the Java GUI Applications Learning Trail.
When you are done, right-click the project in the Projects window and choose Run from the popup menu. Your application should be displayed in the device emulator.
You can now run the device in the emulator.
You can also debug the project, and create and debug tests using the JUnit framework.