This topic describes common tasks you can perform with NetBeans Connected Device Configuration projects.
To perform this task |
Follow these steps |
Create a project |
- Choose File > New Project.
This opens the New Project wizard.
- Under Categories, Choose Java ME
- Under Projects, choose the CDC Application template
that best fits the needs of your project.
|
Configure a project |
- Right click on a project and choose Platforms.
- Choose a platform from the Java Platform drop-down menu.
Note: If you change the platform to one using a different
profile, you will lose your GUI builder palette settings.
- Choose a device from the Device drop-down menu.
- Choose a profile from the Profile drop-down menu.
|
Run a project |
- Choose Run > Run Main Project (F6) or right click on any project
in the Projects window and choose Run Project.
|
Debug a project |
- To debug the main project, choose Debug > Debug Main Project (Ctrl-F5).
- To debug an individual project, right-click the project and choose
Debug Project.
|
Create CDC application interfaces using the GUI builder |
The GUI Builder enables you to create menus and other UI elements by
enabling you to place components where you want them and providing visual
feedback guidelines.
The GUI Builder opens when you create a new project for the Personal
and AGUI profiles.
To open the GUI builder in an open project:
- Right-click on a project and choose New File/Folder.
- Under Categories, choose CDC. Under File Types, choose AGUI Xlet Form
or Personal Profile Xlet Form.
Note: The GUI Builder is not available for projects
using the Ricoh (Foundation Profile) Platform Emulator.
|
Add an emulator platform |
- Download and install the Emulator you want to add.
- Choose Tools > Java Platforms Click the Add Platform button
- In the Add Java Platform dialog box select Java ME CDC Platform
Emulator and click Next.
- Select the directory where the platform you want to add is installed.
- Add the emulator.
|
Manage resources in a project. |
CDC application resources can be located outside of the project JAR,
but must be physically located in the <project>/resources
folder.
To add resources to a CDC project:
- Drag and drop resources in the Projects or Files views.
- Cut and paste into the Resources folder anywhere in the logical view.
|
Add custom libraries |
- Select Tools > Library Manager.
- In the Library Manager dialog box click the New Library button.
- In the New Library window, type a name for the library.
- For Library Type select CDC Class libraries in the drop-down menu
and click OK. The custom library you created will be in the CDC class
Libraries window.
- Click on the custom library then click the Classpath tab.
- Click the Add JAR/Folder button and choose the directory your new
library is located in.
|