A good answer might be:

The Panel and Window classes are children of Container. (If you answered "Frame", that was a good guess, but recall that Frame is a child of class Window.)

Container class

A further view of the AWT hierarchy shows the children of the Container class, and the children of Window.

We will not use the class Dialog in these notes, nor the class FileDialog. A FileDialog is the window-like box that pops up in some programs when you are asked to select a file You are not supposed to memorize these charts, or to be able to reproduce one on demand. But you should understand how they work.

QUESTION 5:

From the chart you see that class FileDialog is a kind of Dialog, which is a kind of Window, which is a kind of Container.

Do you suppose that a FileDialog object:

  • Looks like a little window on the screen, and
  • contains buttons, and text areas, and labels
  • and does various things when you click its buttons?
Click Here after you have answered the question