X

Geertjan's Blog

  • September 25, 2005

How Wizards Work (Part 1): Introduction

Geertjan Wielenga
Product Manager
Wizards can be used for three things:
  • To create a project template. This type of wizard is made available by the New Project wizard after registration in the layer.xml file (e.g., Web Application wizard).
  • To create a file template. This type of wizard is made available by the New File wizard after registration in the layer.xml file:
    • the template can consist of a single file (e.g., New Servlet wizard)
    • the template can consist of multiple files (e.g., New Web Service wizard)
  • To define properties. This type of wizard is made available by an action registered in the layer.xml file (e.g., Add Server Instance wizard).

The NetBeans APIs provide the following wizard classes:

In NetBeans IDE 5.0, you can use wizards to generate code for creating wizards that generate code... Here's the Wizard wizard:

Resources:

Update: There are more parts to this series... Part 2, Part 3, Part 4, and Part 5.

Join the discussion

Comments ( 3 )
  • guest Sunday, September 25, 2005
    Good, now what's the relationship with SwingLabs Wizard framework?
  • jk Monday, January 26, 2009

    Do you have the NB project for this example that hopefully works in 6.5?


  • Stu Monday, June 22, 2009

    I need a maven dependency. Something like this:

    <dependency>

    <groupId>org.swinglabs</groupId>

    <artifactId>wizard</artifactId>

    <version>Some Version</version>

    </dependency>

    or this:

    <dependency>

    <groupId>org.netbeans.api</groupId>

    <artifactId>wizard</artifactId>

    <version>Some Version</version>

    </dependency>

    Where can I find these dependencies? My project is a netbeans maven project based on the net.java.dev.appframework archetype.

    Thanks,


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.