Setting and changing layout managers
To change the layout manager:
- Select the desired layout in the Layouts tab of the Component Palette.
![]()
- On the form, click inside the container whose layout you want to change.
Or:
- Right-click on the target container - either an empty part of the form in the Form Editor window or the node for the container in the Component Inspector.
- Change the layout using the Set Layout submenu.
Note: When you change layouts, the IDE remembers the constraints used on the discarded layout. Therefore, if you change the layout back, it looks the same as it last looked in that layout. The only exception to this is when you switch from Absolute Layout to GridBag Layout. When you switch from Absolute to GridBag, the GridBag constraints are created so that the GridBag Layout looks as close as possible to the previous Absolute Layout. See Standard layout managers for more information on the various layouts.
Contents | Prev | Next | Index |