public MainWindow () {
        setTitle("Camp Planer " + versionString);
        setSize(800, 600);
	    setMinimumSize(new Dimension(500, 300));

        // import setup data
        try {
			System.out.println ("Trying to read setup file " + SETUP_FILE_NAME + ".");
        	setupData = SetupData.read (SETUP_FILE_NAME);
		} catch (Exception e) {
			System.out.println ("Could not read setup file. Using default setup.");
			System.out.println (e);
	        setupData = new SetupData ();
		}
        eventOptionsDialog = new EventOptionsDialog (this);
        computerOptionsDialog = new ComputerOptionsDialog(this);
        createMenuBar ();

        // Create JTabbedPane object
        JTabbedPane tabpane = new JTabbedPane
           (JTabbedPane.TOP,JTabbedPane.SCROLL_TAB_LAYOUT );
        // create panel to edit trip information
        tripDBPanel = new TripDBPanel();
        tripDBPanel.setBackground(Color.LIGHT_GRAY);
        tabpane.addTab("Fahrten", tripDBPanel);
        // create panel to edit river information
        riverDBPanel = new RiverDBPanel();
        tabpane.addTab("Fl\u00FCsse", riverDBPanel);
        // create panel to edit roster information
        rosterDBPanel = new RosterDBPanel();
        rosterDBPanel.setBackground(Color.GREEN);
		setupData.addPropertyChangeListener(rosterDBPanel);
        tabpane.addTab("Fahrtenleiter", rosterDBPanel);
        // add tabs to window
        add(tabpane);    
        
        aboutDialog = new About (this);

        readFromFile(setupData.getDataFileName());

    }