JOptionPane.showMessageDialog(this, "Error saving project: " + e.toString(), "Error", JOptionPane.ERROR_MESSAGE);
    private boolean saveProject(Project project) {        try {            if (project == null)                return true;                        File file;            String fileName = project.getFileName();            if (!fileName.startsWith("<")) {                file = new File(fileName);            } else {                JFileChooser chooser = new JFileChooser();                chooser.setFileFilter(projectFileFilter);                int result = chooser.showSaveDialog(this);                if (result == JFileChooser.CANCEL_OPTION)                    return false;                file = chooser.getSelectedFile();                project.setFileName(file.getPath());            }                        FileOutputStream out = new FileOutputStream(file);            project.write(out);            logger.logMessage(ConsoleLogger.INFO, "Project saved");                        return true;        } catch (IOException e) {            logger.logMessage(ConsoleLogger.ERROR, "Could not save project: " + e.toString());            return false;        }    }