There are two types of top-level containers in Swing: applets and windows. An applet in Swing
is a subclass of JApplet, as indicated by the declaration
public class Multiply extends JApplet
An applet will have an associated layout. An applet will contain components or other
intermediate-level containers such as panels. An applet is downloaded by a Java-enabled Web
browser then run: we discuss this aspect of applets in Section 8.10.
The second type of top-level container is a window. If we wish to add a GUI to a Java
application, ...
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.