The second example uses the automatic layout of editor components provided by the Rule Wizard. To customize the layout, you can use the <constraints> and <label-constraints> tags within the <editor> tags. This leads to the third example:
Notice how the controls are aligned to the left, as shown in Figure 25.
Figure 25. Rule wizard example 3
The composite editor uses a GridBagLayout. You can specify the GridBagConstraints for each label and for each editor using the <constraints> and <label-constraints> tags. Any property you set in a GridBagConstraints object can be specified as an attribute of one of these tags. Introduce constants defined by the GridBagConstraints class to use their symbolic name (such as HORIZONTAL).