private void createContentPane(KongaDialog dialog) {
BorderLayoutBuilder cp = new BorderLayoutBuilder(0, 5);
cp.north(PackageResources.PropertiesDialog.CAPTION).center(selector);
addDialogButtons(dialog, cp);
cp.setBorder(Empty.border(10, 10, 20, 10));
cp.asContentPaneFor(dialog);
}
private void addDialogButtons(KongaDialog dialog, BorderLayoutBuilder cp) {
JPanel buttons = dialog.getButtonPanel(KongaDialog.CLOSE_ONLY, 0);
buttons.setBorder(Empty.border(10, 0, 0, 0));