17. Advanced Layout Manager

Source: Internet
Author: User

1. Box-type layout manager (boxlayout)

A component used to manage a set of horizontal or vertical columns.

Use the 6 invisible components provided by the box class to set the spacing between the box layout manager components.

Two kinds of invisible types in the box class:

Prop (Strut): Sets the width, height, and size of the component.

Glue (Glue): Like a spring, distributes the components evenly into the container.

2. Card Layout Manager (CardLayout)

Method: First (), last (), Next (), previous (), Show ()

3. Grid Group Layout Manager (gridbaglayou

Properties: GridX and GridY, Gridwidth and Gridheight, anchor (position), fill, insets (minimum distance between surrounding and cell edges), INPADX and Inpady (modify width and height), WEIGHTX and weighty

4. Spring Layout Manager (springlayout)

Changing the form can automatically resize the component without changing the relative position between the components.

17. Advanced Layout Manager

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.