O'Reilly logo

The class of Java by Pravin Jain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 18

GUI—Containers

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required