Modifying Component Layout Constraints

When you drop a component into a container, JDeveloper creates an appropriate constraint object or value for that container's layout manager. JDeveloper automatically inserts this constraint value or object into the constraint property of that component in the Property Inspector. It also adds it to the source code as a parameter of the add() method call in the jbInit() method.

To edit a component's layout constraints:

  1. Select the component in the Java Visual Editor or the Structure window.
  2. Select the constraints property in the Property Inspector and click its value field.

    When working with a null layout manager, there is no constraints property on the children, set the contraints on the bounds property instead.

  3. Use the Property Editor to modify the constraints.

    OR

    Click the desired toolbar constraint button in the Java Visual Editor and, when available, choose the value from the dropdown list.