layout.north(getCaption()).center(center);
layout.decorate(canvas);
}
protected JComponent layoutButtons() throws RuntimeException {
Grid sections = Grid.oneRow(20);
sections.setBackground(Colors.NEUTRAL_BACKGROUND);
sections.setBorder(Empty.border(4, 10, 8, 10));
JComponent salesforce = layoutButtons("Salesforce", salesforceButtons);
JComponent standard = layoutButtons("Standard", standardButtons);
if (salesforce == null && standard == null) {
throw new RuntimeException("The client configuration does not contain any connect wizards.");
} else {
sections.addAll(standard, salesforce);
}
BoxBuilder centerAnchor = BoxBuilder.horizontal().setOpaque(false);
centerAnchor.glue().add(sections).glue();
BorderLayoutBuilder northAnchor = new BorderLayoutBuilder().setOpaque(false);
northAnchor.north(centerAnchor);