Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 3.54 KB

File metadata and controls

65 lines (49 loc) · 3.54 KB

Overview

  1. TODO

General notes

  1. Only some LayoutManagers respect preferred/min/max sizes
  2. Almost all respect setPreferredSize(...)
  1. Reactive, can think in one dimension at a time
  2. Supports configurable spacing
  3. Respects min/preferred/max sizes
  4. Supports gaps/spacing between components
  5. Similar to Android Constraint layout
  6. Official guide
  7. Con: If you replace a component, you must redefine some constraints
  8. Can make grids:
    1. Official example 1
    2. Official example 2
  1. TODO
  2. Respects min/preferred/max sizes
  3. Supports gaps/spacing between components
  4. TODO
  1. Quickstart guide
  2. TODO
  3. Respects min/preferred/max sizes
  4. Supports gaps/spacing between components
  1. TODO

Rejected/obsoleted

  1. BoxLayout:
    1. Use MigLayout or GridLayout or SpringLayout
  2. BorderLayout:
    1. Use MigLayout or SpringLayout
    2. Ignores min/preferred/max sizes for NORTH/SOUTH/EAST/WEST (cropping/truncation)
    3. Useful only for making (CENTER) child fully expand to parent
  3. GridBag:
    1. Use MigLayout instead
    2. Code bloat
    3. Overly complex
    4. Too little power
    5. Unmaintainable
  4. GridLayout:
    1. Use MigLayout instead
    2. All components must be same size
    3. Ignores min/preferred/max sizes
    4. Narrow usefulness

Other Resources

  1. TODO