return;
}
}
// Show new project window
DlgNewProject dlg = new DlgNewProject(this);
dlg.setSize(new Dimension(452, 153));
// If the user pressed the OK button
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);