PaneLayout constraints property editor
In a PaneLayout, the placement and size of each component is specified relative to the components that have already been added to the container. Each component specifies a PaneConstraints object that tells the layout manager from which component to take space, and how much of its existing space to take. You use the PaneLayout Constraints property editor to modify this information for each component.
Note: A component's PaneConstraints object is applied to the container as it existed at the time the component was added to the container. The order in which you add the components to the container is very important.
You can access the PaneLayout Constraints property editor from two places:
- The component's constraints property in the Inspector.
- The Constraints menu item on the component's right-click popup menu.
For more detailed information on PaneLayout and its constraints, see the PaneLayout topic in Building Applications with JBuilder.
PaneConstraint variables
The constraint for a PaneConstraints component that is being added to a container consists of four variables:
Name
The name for this component. This is unique for all components in the container. You can use the default name assigned when the component is added to the container, or you can rename it with the name property in the Inspector.
Splits
The name of the component from which space will be taken to make room for this component.
Position
The edge of the splitComponentName to which this component will be anchored. Valid values are:
|
Top |
This component will be above the split component. |
|
Bottom |
This component will be below the split component. |
|
Right |
This component will be to the right of the split component. |
|
Left |
This component will be to the left of the split component. |
|
Root |
This component is the first component added to the container. |
Proportion
The proportion of the split component that will be allocated to this component. Enter a number between 0 and 1.