Creating a Control Project

The Visual J++ Control template provides a head start in creating a WFC control. The template provides a class that is derived from com.ms.wfc.ui.UserControl and that contains a ClassInfo class that is derived from UserControl.ClassInfo.

Note   Before you start the following procedure, close any open projects. (On the File menu, click Close All.)

To create a control project with the Control template

  1. On the File menu, click New Project.

  2. On the New tab, expand the Visual J++ Projects folder, click Components, and then select the Control icon.

  3. In the Name box, type a name for your project.

    For this scenario, type GroupCheck.

  4. In the Location box, type the path where you want to save your project, or click Browse to navigate to a directory.

  5. Click Open.

    A collapsed view of your project appears in Project Explorer.

  6. In Project Explorer, expand the project node.

    A file with the default name Control1.java is added to your project.

  7. To rename the control source file to GroupCheck.java, right-click the file name in Project Explorer, and then click Rename.

    Note   Renaming this file does not rename the associated class in the source code and vice versa. You must manually change all instances of the old name. (You can create an empty project and then add a control class to the project. You can then name the control before it is created.)

The next step is to design the layout of your control.