Adding a New Declaration

You can use Class Outline to add a method or member variable to a class, or to add a new class to your .java file.

To add a new declaration

  1. Right-click the name of a class in Class Outline to add a method or member variable.

    -or-

    Right-click the Class Outline window to add another class to the file.

  2. On the shortcut menu, click Add Class, Add Member Variable, or Add Method.

  3. If you are adding a class, enter the class information in the Add Class dialog box:
  4. If you are adding a member variable, enter the member variable information in the Add Member Variable dialog box:
  5. If you are adding a method, enter the method information in the Add Method dialog box:

The new declaration is inserted into the .java file, where you can add your implementation. Class Outline is automatically updated to display the new item.

Note   If you use the Text editor to add a declaration, the item is automatically added to Class Outline.

For more information about adding and modifying declarations, see Modifying Code with Class Builder and Creating Files with Class Wizard.