The JPanel
class is Java's generic component container. Each
JFrame
instance and JApplet
instance has a content pane, and
that content pane is, by default, an instance of the JPanel
class.
You refer to instances of the JPanel
class, or subclasses of
that class, as panels.