Creating a Project from Scratch


The process of creating a project from scratch is nearly identical to how it is done with general Java projects:

  1. Choose File | New Project.

  2. In the Categories tree, select the Mobile folder.

  3. Select Mobile Application or Mobile Class Library.

    The Mobile Application template provides an option to generate an example MIDlet automatically. The Mobile Class Library template does not generate any classes for you.

    The MIDP 1.0 UI, the MIDP 2.0 UI, and the Bluetooth examples (all available in the Samples | Mobile folder in the New Project wizard) use the Visual Designer.

  4. Click Next.

  5. Optionally, fill in the following fields in the Name and Location panel of the wizard:

    Project Name. The name by which the project is referred to in the IDE's user interface.

    Project Location. The location of the project on your system.

    The resulting Project Folder field shows the root project directory that contains folders for your sources, build and properties files, compiled classes, and so on.

  6. Optionally, deselect the Set As Main Project checkbox if you have another project open that you want associated with the IDE's main project commands (such as Build Main Project).

  7. Optionally, if you selected Mobile Application project, you may deselect the Create Hello MIDlet checkbox to avoid generating an example MIDlet. Otherwise, a small sample MIDlet is created that uses the Visual Designer.

  8. Click Next or Finish.

  9. Choose the emulator platform you would like your project to use by default. This setting controls your project's classpath as well as which emulator and device are launched when you run your project.

    Note that you can change this setting once the project has been created.

  10. Click Next or Finish.

  11. Optionally, create additional project configurations from templates. Check those that you need. You can find more information on project configurations in Configuring Your Project for Different Devices.

  12. Click Finish.



NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net