Creating A Wizard
See Also
The Wizard wizard helps you by creating several of a wizard's basic Java source files, containing sample code, for you.
When you want to create a wizard, you do not always need to use the Wizard wizard. The table below
helps you to chose.
Depending on the type of wizard you want to create, do
the following:
To create a New File wizard or a custom wizard:
- Right-click a module project and choose New > Project Template.
- In the Wizard Type page, you have to set the following:
- Registration Type. Specifies where the user will be able to
find the wizard in the IDE. See About Wizards for details.
- Wizard Steps. Specifies the number of panels that the wizard will contain.
In the Name, Icon, and Location page, you have to set the following:
- Class Name Prefix. Specifies the name of the new panels and action class.
- Package. Specifies the name of the package where the class will be housed.
- Only if the wizard will be registered as a New File wizard
can you set the following items:
- Display Name. Specifies the display name for
the new wizard in the New File wizard.
- Category. Specifies the New File wizard
category where the new file wizard will be located.
- Icon. Specifies the icon that will be displayed
in the New File wizard.
Click Finish.
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.
To create a new project template or a sample wizard:
- Right-click a module project and choose New > Project Template.
- 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.
- 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.
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