This chapter discusses the Swing lightweight containers listed below:
JPanel is the successor to the AWT's
Panel classes. Both text and graphics can be rendered in instances
JPanel, and instances of
JPanel can be used as a generic container.
JRootPane is a container that is contained in all of Swing's top-level containers, such as frames, dialogs, windows, internal frames, and Swing applets. ...