NumberedSectionsLayout layout = new NumberedSectionsLayout();
layout.setVerticalGap(16);
layout.setWeights(new double[] { 1.0, 1.0 }, new double[] { 1.0, 0.0 });
layout.addSection("Link Keys", wrapComponent(linkKeysDefiner));
layout.addSection("Join Type", wrapComponent(joinTypeSelector));
layout.decorate(canvas);
}
private JComponent wrapComponent(UiProvider ui) {
JComponent c = BorderLayoutBuilder.fillWith(ui);
c.setBorder(StyleSheet.getDefaultTitleBorder(null));