Exercise 1: Viewing the Class Hierarchy

In this exercise, you will learn how the classes in the Blink project are derived. If you haven't yet created and built the Blink project, you should do so now. Step-by-step instructions are in Creating a Project.
  1. Check the Java WorkShop tool bar for the name of the current portfolio and project.
    If the current portfolio is not "personal," choose Portfolio => Choose => personal. If the current project is not Blink, choose Project => Choose => Blink.

  2. Click on the Source Browser control on the WorkShop tool bar.
    The WorkShop opens the Class Browser. The Class Browser lists the source files that make up the project. The Blink project has one source file, Blink.java. The Status field in the Class Browser indicates the tool is "Ready."

  3. Click on Blink.java (under the Status field).
    The Status field changes to "Browsing" while the Class Browser loads the classes from which Blink is derived. Blink is derived from Applet, which is derived from Panel, and so on.

    The text is generated by a derivative of javadoc, the Java API Documentation Generator. Javadoc parses the declaration and comments in the project's source code and formats the API into HTML code.

Next lesson:

Exercise 2: Viewing the Methods in Your Project