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 (common) 1

2. Flow layout (not used) 1

3. BorderLayout (not used) 1

4. BoxLayout ( HTML default layout) 2

5. CardLayout (tab layout) 2

6. GridLayout 3

7. GridBagLayout 3

8. Fixed positioning (not used) 3

1. Absolutilayout (Common)

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 (not commonly used)

A little, compatibility good, different device width.

Html to set as float=left

3. BorderLayout (not 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 into the current panel.

Effect:

.

5. CardLayout (Tablayout)

Card layouts are different from other layouts because they hide some components. A card layout is a set of containers or components that are only one display at a time, and each container in the group is called a card.

6. GridLayout

GridLayout lets you create a component table, and when the component is added, it will be left to right sequentially, from top to bottom, 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 his features are also 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 one cell, and GridBagLayout does not: The component can occupy a rectangular area of any size in the container.

8. Fixed positioning (not used)

Allows the element to remain fixed on the screen, the drop-down scroll bar, and the position does not change

Reference

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.