All GUI applications normally use a top-level container in which components are placed, and then the top-level container is made visible. This would also show all the components which have been added into the container. Figure 18.1 shows the class hierarchy for all the container classes. Out of these, the
Window class and its sub-classes as well as the
java.applet.Applet are considered as the top-level containers. So any GUI application would use one of these. Most commonly, it is the
Frame class which is used as the top-level container for the AWT-based Java applications. The
java.applet.Applet class is used in case of Web-based applications, where the
Applet class is deployed on the Web server and it is used by the ...