Layout managers allow a Container to arrange its components by a set of rules that would be adapted for specific screen/font sizes.
Layout managers are great for mobile applications because they are good at adjusting to different screen sizes and filling the available space gracefully.
LWUIT includes five layout managers.
- FlowLayout places components from left to right in rows, just like English text.
- BorderLayout has a large center area and four smaller areas around the edges.
- BoxLayout arranges components in a single row or column.
- GridLayout places components in a grid.
- More complex layouts can be accomplished using GroupLayout and its helper class Group.