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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access