previous |
start |
next
Border Layout
- Border layout places components into positions (center, north,
west, south, east)
panel.add(textField, BorderLayout.SOUTH);

- Content pane of frame has border layout by default
frame.getContentPane().add(textField,
BorderLayout.SOUTH);
- Border layout grows components to fit area
- To avoid growth, place component into panel (with flow layout),
then add panel to content pane
previous |
start |
next