});
}
JButton doneButton = UIUtils.createDoneButton();
doneButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
dialog.dispose();
}
});
if (screenCapture != null)
dialog.setActionButtons(new JButton[] { screenCapture, doneButton });
else