<<< JFrame Revisited | Index | Using Layout Managers >>> |
To determine UI component position in a frame or a panel, a layout manager object is used.
There are several layout managers in Swing:
FlowLayout: default layout manager:
Adds UI components to the top of container, in left-to-right order.
If out of space, creates a new row of UI components.
By default, components are centered horizontally.
BorderLayout
GridLayout
<<< JFrame Revisited | Index | Using Layout Managers >>> |