Viewing the Class Hierarchy

The Object Browser enables you to view the classes, methods, and data items in your program.

To view the class hierarchy for ColorSwitch:

  1. In the main window, click the Browsing workspace button.

    The Object Browser window is divided into the Packages, Objects, and Members panes.

  2. In the Packages pane, select the colorswitch package.

    The Objects pane now shows the class ColorSwitch.

  3. Select the ColorSwitch class.

    The Members pane shows each method and data member contained in the ColorSwitch class.

  4. Select JButton1.

    The button's properties appear in the Properties window.

  5. In the Members pane, double-click the main method.

    The Source Editor is displayed, with the cursor at the beginning of the the main method.

You have completed the ColorSwitch tutorial.

Back:Stepping Through the Code

Legal Notices