grid.addRow(lastLabel, lastSection);
}
private JComponent layoutSection(UiProvider section, String caption) {
BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5);
layout.north(WizardStyleSheet.caption(caption)).west(/*empty space*/new JLabel(" ")).center(section);
// XXX: The number label has a substantial margin above and below the text. I don't know
// how to get rid of that, so to line of things better we instead add an empty margin
// above the section layout.
layout.setBorder(Empty.border(15, 0, 0, 0)).setOpaque(false);
return layout.container();