Action stopAction = createActionWrapper(StopDebuggingAction.ID, stopHandler, dialog);
stopAction.putValue(Action.NAME, "Stop Current Test and Continue With New Test");
JButton cancelButton = dialog.createCancelButton();
BoxBuilder buttons = BoxBuilder.horizontal();
buttons.setUseSmallSizedIconsForActions(true);
buttons.addAllWithSpace(10, stopAction, continueAction).glue().add(cancelButton);
layout.south(buttons);
layout.setBorder(Empty.border(10));
layout.asContentPaneFor(dialog);
dialog.pack();
dialog.setLocationRelativeTo(null);