Atitit. Advantages and Disadvantages of Software Development GUI layout management summary java swing wpf web html c ++ qt php asp.net winform, atititwpf
Atitit. Advantages and Disadvantages of Software Development GUI layout management summary java swing wpf web html c ++ qt php asp.net winform
1. absolti layout (commonly used) 1
2. Flow layout (not commonly used) 1
3. BorderLayout (not commonly used) 1
4. BoxLayout (default html layout) 2
5. CardLayout (tab layout) 2
6. GridLayout 3
7. GridBagLayout 3
8. Fixed positioning (not commonly used) 3
1. absolti layout (commonly used)
In Html, you must set the div attribute to absolti.
. Net default Layout
Default layout of C ++ qt
Simple and Convenient: disadvantages: Once the UI is maximized, the layout remains unchanged ..
Author: old wow's paw Attilax iron, EMAIL: 1466519819@qq.com
Reprinted please indicate Source: http://blog.csdn.net/attilax
2. Flow layout (not commonly used)
A little bit, good compatibility, different device widths ..
Set Html to float = left
3. BorderLayout (not commonly used)
A BorderLayout object divides the interface into five areas, respectively specified using static constants of the BorderLayout class:
-PAGE_START
-PAGE_END
-LINE_START
-LINE_END
-CENTER
Effect:
4. BoxLayout (default html layout)
BoxLayout can add components from top to bottom or from left to right to the current Panel.
Effect:
.
5. CardLayout (tab layout)
The card layout is different from other la s because it hides some components. A card layout is a group of containers or components. Each container in a group is called a card.
6. GridLayout
GridLayout allows you to create a component table. When a component is added, it is sequentially left to right, from top to bottom filled with each grid, it cannot be specified by you to put the grid that you want to put.
7. GridBagLayout
GridBagLayout is the most complex among all AWT layout managers, and its functions are also the most powerful. Like GridLayout, GridBagLayout manages components in a grid in a container. However, GridBagLayout is much more powerful.
1. All rows and columns managed by GridBagLayout can be of different sizes;
2. GridLayout restricts each component to one cell, but GridBagLayout does not: the component can occupy any rectangular area in the container.
8. Fixed positioning (not commonly used)
The elements can be fixed on the screen. The drop-down scroll bar and position remain unchanged.
Reference
Swing layout manager introduction-Sub-workshop-51ctotechnical blog .htm