- TODO
- Only some
LayoutManagersrespect preferred/min/max sizes - Almost all respect
setPreferredSize(...)
- Reactive, can think in one dimension at a time
- Supports configurable spacing
- Respects min/preferred/max sizes
- Supports gaps/spacing between components
- Similar to Android Constraint layout
- Official guide
- Con: If you replace a component, you must redefine some constraints
- Can make grids:
- Quickstart guide
- TODO
- Respects min/preferred/max sizes
- Supports gaps/spacing between components
- TODO
:BoxLayout- Use MigLayout or
GridLayoutorSpringLayout
- Use MigLayout or
:BorderLayout- Use MigLayout or
SpringLayout - Ignores min/preferred/max sizes for NORTH/SOUTH/EAST/WEST (cropping/truncation)
- Useful only for making (CENTER) child fully expand to parent
- Use MigLayout or
:GridBag- Use MigLayout instead
- Code bloat
- Overly complex
- Too little power
- Unmaintainable
:GridLayout- Use MigLayout instead
- All components must be same size
- Ignores min/preferred/max sizes
- Narrow usefulness
- TODO