public ProjectSettings(Main main, Map map) {
        super(main, true);

        initComponents();

        // Set variables
        this.map = map;
        this.main = main;

        // Setup choosable font properties
        setupChoosableFontProperties();

        // Set standard font, style and size from given project settings
        this.cbFonts.setSelectedItem(this.main.getDocumentStyleSettings().getCurrentFont());

        if (this.main.getDocumentStyleSettings().getCurrentFontStyle() == 0) {
            this.cbFontStyle.setSelectedItem("Plain");
        } else if (this.main.getDocumentStyleSettings().getCurrentFontStyle() == 1) {
            this.cbFontStyle.setSelectedItem("Bold");
        } else if (this.main.getDocumentStyleSettings().getCurrentFontStyle() == 2) {
            this.cbFontStyle.setSelectedItem("Italic");
        }

        this.cbFontSize.setSelectedItem(this.main.getDocumentStyleSettings().getCurrentFontSize());

        // Get the size of the screen
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension dim = tk.getScreenSize();

        // Determine the new location of the window
        int x = (dim.width - (this.getSize().width)) / 2;
        int y = (dim.height - (this.getSize().height)) / 2;

        // Center the window
        this.setLocation(x, y);

        // Set Main icon
        java.net.URL url = ClassLoader.getSystemResource("View/Images/72x72.png");
        java.awt.Image img = tk.createImage(url);
        this.setIconImage(img);

        // Set the storyname
        tfStoryName.setText(map.getStory().getName());

        // Set the storyimage
        if (map.getStory().getImage() != null) {
            tfStoryImage.setText(map.getStory().getImage().getAbsolutePath());
        }

        // Setup temp variables
        this.tempFont = this.main.getDocumentStyleSettings().getCurrentFont();
        this.tempFontStyle = this.main.getDocumentStyleSettings().getCurrentFontStyle();
        this.tempFontSize = this.main.getDocumentStyleSettings().getCurrentFontSize();
        this.tempFontColor = this.main.getDocumentStyleSettings().getCurrentFontColor();
    }