Absolute layout Absolute
When the interface is enlarged or reduced, the size and position of the components will not change
Floating layout FlowLayout
When the application window is resized, the components will be rearranged immediately
Border layout Border Layout
This position has 5 directions: east, south, west, north, middle
Grid Layout Grid Layout
If a large number of components need to be arranged regularly, then grid layout is the most suitable. For example, the production of calculator interface.
CardLayout
Card layout is different from other layouts because it hides some components. A card layout is a group of containers or components that only appear one at a time. Each container in the group is called a card.
Group Layout Group Layout
Group layout is one of the most complex layout managers in Swing and can be used to achieve most component layout requirements.