## Bundling a Project Template or Sample

See Also

The New Project Template wizard creates a new project template or project sample. You can create an NBM file that contains your template or sample. When the user installs the NBM file, the template or sample will be available in the New Project wizard.

Before you can use the New Project Template wizard, you must have a project in the IDE that is structured in exactly the way that you would like it to be available in the New Project wizard. For example, if you are going to create a new project sample, you must first lay it out in the IDE. Then use the New Project Template wizard to add the template to the New Project wizard.

To create a new project template or sample:

1. Right-click a module project and choose New > Project Template.
2. In the Select Project page, you have to specify the project that you want to make available as a project template or sample. You can use the Project drop-down list to select an open project or you can click Browse to browse to a project in your filesystem.

   Click Next.

3. In the Name, Icon, and Location page, you have to set the following:
   - Template Name. Specifies the name of the new project template.
   - Display Name. Specifies the template's label. For example, you will see this label in the Module Manager. (Optional)
   - Category. Specifies the template's category. For example, this will enable the user to find the template more easily in the New Project wizard. (Optional)
   - Package. Specifies the name of the package where the classes will be housed.

   Click Finish.

4. After completing the wizard, you can do one or more of the following:
   - Tweak the `layer.xml` file to change the icon or rearrange the position of the template in the New Project wizard.
   - Change the description that will appear in the New Project wizard's Description box.

See Also
  About NetBeans Platform and Module Development
  About the NetBeans Platform

Legal Notices