dialog.setVisible(false);
}
});
if (actions != null) {
JButtonBar buttons = new JButtonBar();
buttons.addActions(actions);
rootPane.setDefaultButton(buttons.getDefaultButton());
for (int c = 0; c < actions.getActionCount(); c++) {
Action action = actions.getActionAt(c);
if (action instanceof HelpActionMarker) {
rootPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(