Atitit. Software development GUI layout Management pros and cons summary Java swing WPF Web HTML C + + qt php asp WinForm

Source: Internet
Author: User

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 : : Disadvantages, once the maximum interface, the layout is still unchanged, 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, compatibility good, different device width.

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 that are only one at a time, and each container in the 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, from top to bottom, to each grid, and it cannot be specified by you to put that grid in 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, like GridLayout, manages components in the form of 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.