} catch (Exception ex) {
KongaTextArea text = new KongaTextArea(ex.toString(), 5, 40);
String title = "Failed to open '" + file.getName() + "'";
JOptionPane.showMessageDialog(null, new JScrollPane(text), title, JOptionPane.ERROR_MESSAGE);
} finally {
waitLock.release();
}
}
}.execute();
}