The types of layout managers available in the Java language are: boundary layout, card layout, flow layout and network format layout, each have different characteristics, can be selected according to the actual needs; but the most free design space is "No layout manager"-that is, not using any layout format, Instead, add the component to the absolute position of the page layout by hand. In this case, the no layout manager is used.
When you use the No Layout manager, you first make a declaration, namely:
SetLayout (NULL);
Then use the reshape () method to specify the exact location and size of the component,
The basic statement looks like this:
Label Label1=new label (); Define Labels
This.add (Label1); Add tags to layout manager
Label1.reshape (10,10,30,30); Draw a label at a specified location
For multiple labels and text boxes, you can add them by referencing this format.
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.