That layout manager is responsible for positioning components, regardless of the platform or screen size.
To find out how much space a component needs, the layout manager calls the
component's getMinimumSize(), getPreferredSize(), and getMaximumSize() methods.
The AWT layout managers are
FlowLayout,
BorderLayout,
GridLayout,
CardLayout, and
GridBagLayout.
The Swing layouts are
BoxLayout,
OverlayLayout,
ScrollPaneLayout,
ViewportLayout, and
SpringLayout.