Atitit. Software Development GUI Layout Management Pros and cons summary java swing WPF Web HTML C + + qt php ASP. WinForm
1. Absoluti layout (regular use) 1
2. Flow layout (infrequently used) 1
3. BorderLayout (infrequently used) 1
4. BoxLayout ( HTML default layout) 2
5. CardLayout (tab layout) 2
6. GridLayout 3
7. GridBagLayout 3
8. Fixed positioning (infrequently used) 3
1. Absolutilayout (often used)
to set the div Property to Absoluti in Html
default layout for . Net
default layout for C + + qt
Simple and Convenient ::: disadvantage, once maximized interface. The layout is still the same, ugly.
。
Author:: Old Wow's paw Attilax Ayron. Email:[email protected]
Reprint please indicate source: Http://blog.csdn.net/attilax
2. Flowlayout (infrequently used)
A little Good compatibility. Different device widths:
Html to set as float=left
3. BorderLayout (infrequently used)
A BorderLayout object divides the interface into five large regions, specified by the static constants of the BorderLayout class, respectively:
-page_start
-page_end
-line_start
-line_end
-center
Effect:
4. BoxLayout (HTMLdefault layout)
BoxLayout can add components from top to bottom or from left to right to the current panel in turn.
Effect:
.
5. CardLayout (Tablayout)
The card layout differs from other layouts because it hides some components. A card layout is a set of containers or components. They are only one at a time. Each container in a group is called a card.
6. GridLayout
GridLayout allows you to create a component table, and when the component is added, it will be left to right sequentially. Padding from top to bottom into each lattice. It's not for you to specify that you want to put that grid on that grid.
7. GridBagLayout
GridBagLayout is the most complex of all AWT layout managers, and at the same time his features are the most powerful.
GridBagLayout is the same as GridLayout. Manage components in a grid in a container. But GridBagLayout features are much more powerful.
1, gridbaglayout Management of all rows and columns can be of different sizes;
2. GridLayout restricts each component to a single cell, and GridBagLayout does not: The component can occupy a rectangular area of arbitrary size in the container.
8. Fixed positioning (infrequently used)
The ability to keep elements fixed on the screen, drop-down scroll bar, position unchanged
References
Swing Layout Manager Introduction - sub larvae -51CTO Technical blog . htm
Atitit. Software development GUI layout Management pros and cons summary Java swing WPF Web HTML C + + qt php asp WinForm