Creating a Module Project
See Also
Use a module project template to create a module project. The module
project is the place where you code your module. Module projects implement the module's features
and functionality that extend the NetBeans APIs, which you kickstart
by using file templates. In addition, module projects include the
business logic that integrate the library wrapper module projects
into the module. Code housed in module projects also provides,
for example, the user interface for receiving and processing user input.
To create a module project:
- Choose File > New Project
(Ctrl-Shift-N).
- From the NetBeans Modules category, select Module. Click Next.
- In the Name and Location panel, specify the following:
- Project Name. Specifies the folder in which the project
will be housed, prepended by the project location, which
is specified in the next field.
- Project Location. Specifies the location where you want to store the
project metadata and source code.
- Project Folder. Specifies the folder where you want
to store the project metadata and source code. The folder is a concatenation
of the project location and the project name.
- Standalone Module. Specifies that the module does not belong to a module suite. In addition,
you must specify which platform the module will be compiled and deployed against. To add additional
platforms to the list, click Manage and use the NetBeans Platform Manager.
- Add to Module Suite. Specifies that the module belongs to a module suite. If the module
suite is not currently open in the IDE, click Browse to locate the module suite in your
filesystem.
- Set as Main Project. Sets the newly created project as the main
project.
- Click Next.
- In the Basic Module Configuration panel, specify the following:
- Code Name Base. Specifies a unique name for the module. A main
package will be created with the same name as the code name base. If your
code name base is org.modules.foo, your default package structure will be
org/modules/foo.
- Module Display Name. Specifies the name that will be displayed
in the Projects window.
- Localizing Bundle. Specifies location of the Bundle.properties
file. Normally, the default suggestion should be appropriate.
- XML Layer. Specifies the location of the optional XML layer file.
If you do not ask to create one now, one will be created for you automatically
if you run any wizard which would need to add a layer entry.
- Click Finish.
- See Also
- About NetBeans Platform and Module Development
- About the NetBeans Platform
- About the System Filesystem
- About NetBeans Platform and Module Development
- About XML Layer Files
- Working with Modules
- Module Tasks: Quick Reference
Legal Notices