 |
Home | Changes | Index | Search | Go
See layout managers for the basics of layout concepts.
Since this is about AWT layout, these layout managers don't use the MaximumSize of widgets, meaning that as soon as you use a AWT layout manager you will loose all the maximum size information of all the widgets contained in the container.
- BorderLayout -- very simple layout manager that pre-defines 5 positions for you to use. Does not honor minimum size
- CardLayout -- a layout manager that only shows one of its widgets at a time
- FlowLayout -- The default layout manager for a JPanel, adds widgets on rows, and when it does not fit, creates a new row.
- GridBagLayout -- Very advanced layout that moves the concept of what widgets sizes should be out of the widgets into the layouter, allowing very precise layout, but having the problem that the designer has to know the contraints of the widget he is layouting.
- GridLayout -- The GridLayout class is a layout manager that lays out a container's components in a rectangular grid.
See also Swing Layout managers, 3th party layouters
|