public SimpleErrorDialog(RobotDriver parentRobotDriver, String title, boolean modal , String errorText) {
super(parentRobotDriver, title, true);
final JOptionPane optionPane = new JOptionPane(errorText, JOptionPane.ERROR_MESSAGE);
setContentPane(optionPane);
setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
optionPane.addPropertyChangeListener(
new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent e) {
String prop = e.getPropertyName();
if (isVisible()
&& (e.getSource() == optionPane)