Setting Layout Properties
See Also
You can modify the appearance of your forms by adjusting general layout manager
properties as well as properties specific to components.
In the IDE you can modify:
- General layout properties which effect all components in a container, such
as alignment of components and gaps between the components.
- Layout properties specific to a component that is managed by a particular
layout manager and which apply to that component alone.
These type of properties are also known as
constraints.
To set general layout manager properties:
- Select the layout manager's node in the Inspector window.
- In the Properties window, select the property you want to edit and enter
the desired value. Note that the properties vary depending on the layout
manager and that some layout managers do not have any properties.
The IDE updates all effected components' positions.
To set layout properties of components:
- Select the component in the Inspector window.
- Click the Properties button at the top of the Properties window.
- Scroll
down to Layout properties, select the property you want to edit and enter
the desired value.
The IDE automatically updates the component's layout behavior.
- Not all layout managers use constraints. These
layout managers (FlowLayout, GridLayout, and BoxLayout), do not have Layout
properties and component layout is determined by component order.
- See Also
- About Layout Managers
- Setting the Layout Manager
- Working With Containers
Legal Notices