Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com

javax.swing.JPanels provide an excellent means to create a main division inside a Container, such as this applet's contentpane.

The Panels are constructed in the applet's constructor.

Then, in the init method, the layout mode for the contentpane is set to a GridLayout of 2 rows, so each Panel will take up half of the pane.

The panels are added to the contentpane.

Components added to the panels.

Update the panel's appearance, for a label has been added.

=======

NOTE

=======

The default contentpane is itself a JPanel.

Subclass of Container.

.