CIS 121 March 22, 2000
Wrapping up GUI
Today we will finish our discussion of GUI. This is a very large subject
and so we are not able to cover all aspects of it.
Recall the things we have discussed.
The AWT Package. One of the main classes in the AWT is the Component
class.
Components such as Buttons and TextFields are direct descendants of
the Component class.
Two other direct descendants of the Component class are the Container
class and the Panel class.
The Window class is a descendant of the Container class, and the Frame class
is a descendant of the Window class.
The Applet class is a descendant of the Panel class.
Almost all components can be placed into a Frame.
Components except for Menu components can be placed into an Applet.
Unfortunately Menu Components are only associated with Frames.
However, we can use a pop up menu in an applet. Let us look at an
example.
We can also play sounds.
Let us now look back at some of the examples from Monday.