I recommend supporting flat layouts over nested ones. In one layout arrangement is easy. Avoid TitledBorders and replace them with title separators, dividers, or just white space. This helps the vast majority of editors and forms.
But if you want to align across multiple editors or forms, the technique described above has failed. JGoodies FormLayout provides two levels to solve these problems and, more generally, to improve layout consistency: 1) lower bounds on dimensions, 2) layout variables.
With 1) you can describe layouts that provide minimal width in different shapes. For example, if you want to say that all label columns are at least 100 pixels wide, you can say "[100px, pref]" for the label column.
2) goes beyond the scope of approach 1). And the motivation is to extract 100px from your many forms. In FormLayout, you can configure layout variables, such as $ label, which you configure as "[100px, pref]" or "right: [75dlu, pref]", etc. If you use the layout variable in all your editors, it will be and you have one place where you can configure all the shortcut columns for all editors.
Karsten Lentzsch
source share