Laying out components within a container by: Anatoliy Malyarenko
Contents of the lecture. - A visual guide to layout managers. -
Tips on choosing the layout manager. - How to use different
layout managers. Every content pane is initialised to use a
BorderLayout. A BorderLayout places components in up to five
areas: top, bottom, left, right, and center. All extra space is
placed in the center area. The BoxLayout class puts components
in a single row or column. It respects the components' requested
maximum sizes and also lets you align components. The CardLayout
class lets you implement an area that contains different
components at different times. A CardLayout is often controlled
by a combo box, with the state of the combo box determining
which panel (group of components) the CardLayout displays. An
alternative to using CardLayout is using a tabbed pane, which
provides similar functionality but with a FlowLayout is the
default layout manager for every JPanel. It simply lays out
components in a single row, star