The layout manager provided by the Java language is: border layout, card layout, flow layout and web format layout, etc., each has different features, can be selected according to actual needs; but the maximum free design space is "no Layout Manager - ie no layout format, and add components to the absolute position of the page layout by manual. The use of this example is "No Layout Manager".
When using the "No Layout Manager", you must first make a statement, namely:
setLayout (null);
Then use the Reshape () method to specify the specific location and size of the component.
The basic statement is as follows:
Label label1 =
New label (); // Define label
This.Add (label1); // Add the label to the layout manager
Label1.
Reshape (10, 10, 30, 30); // Draw label at the specified location
For multiple tags and text boxes, refer to this format.
Friends who intend to classmates Java can enter QQ groups
6779148 Note Java study, and welcome the master to come in to give us a point.