A good answer might be:

Read the Documentation!

AWT Documentation

You have documentation of the AWT if you downloaded it from the Sun Microsystems web site (or if you bought a commercial Java development environment). If you have the documentation, it might be on your hard disk at C:\jdk1.2.2\docs\index.html. You may want to look there later.

To read the documentation, you need keep inheritance in mind. For example, here is the top of the documentation for the class Component (the actual documentation is much longer):


java.awt
Class Component

java.lang.Object
  |
  +--java.awt.Component
Direct Known Subclasses:
Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, TextComponent

This says that class Component is a child of Object, and then lists the children of Component. This says much the same thing as a previous diagram in these Notes. In the real documentation you can click on a child class name to go to its documentation (this does not work here.) By doing this you can go up and down the inheritance hierarchy.

QUESTION 7:

Is Button a child of Component?

Click Here after you have answered the question