if (dlg.getAnswer() == JOptionPane.OK_OPTION) {
try {
setCursor(Cursor.WAIT_CURSOR);
// Create the project
Project newProject = new Project(dlg.getProjectPath(), dlg.getMapFile());
// Notify any registered listeners that the project has changed
Broadcaster.NotifyProjectChanged(newProject);
} catch (Exception e) {
JOptionPane.showMessageDialog(this, "An error occured while creating the project", "Error", JOptionPane.ERROR_MESSAGE);