private JComponent createDialogButtons() {
JButton ok = dialog.createOKButton();
JButton cancel = dialog.createCancelButton();
BoxBuilder row = BoxBuilder.horizontal();
KongaButton testButton = createTestButton();
row.add(clientHelpButton).strut(10).add(testButton).glue().addAllWithSpace(10, ok, cancel);
// HACK for bug 1978511:
int rightBorder = SystemUtils.IS_OS_WINDOWS_VISTA ? 0 : 1;
return row.withEmptyBorder(10, 0, 10, rightBorder).container();
}