When you add a component to an applet or a container, the container
uses its layout manager to decide where to put the
component. Different LayoutManager classes use
different rules to place components.
java.awt.LayoutManager is an interface. Five
classes in the java.awt package implement it:
FlowLayoutBorderLayoutCardLayoutGridLayoutGridBagLayoutplus javax.swing.BoxLayout