public void createWindow() {
		System.out.println("Creating GUI.");
		setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
		
		setSize(Constants.WIDTH, Constants.HEIGHT);
		setLocationRelativeTo(null);
		if(Constants.MAXIMIZED) setExtendedState(getExtendedState() | MAXIMIZED_BOTH);
		
		setMinimumSize(new Dimension(Constants.MIN_WIDTH, Constants.MIN_HEIGHT));
		setTitle(Constants.TITLE);
		setIconImage(Images.ICON);
		
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				quit();
			}
		});
		
		addWindowStateListener(new WindowStateListener() {
			public void windowStateChanged(WindowEvent e) {
				int state = e.getNewState();
				if(state == NORMAL) Constants.MAXIMIZED = false;
				else if((state & MAXIMIZED_BOTH) == MAXIMIZED_BOTH) Constants.MAXIMIZED = true;
			}
		});
		
		System.out.println("Loading content pane.");
		contentPane = new ContentPane(this);
		System.out.println("Setting content pane.");
		setContentPane(contentPane);
		
		System.out.println("Creating dialog boxes.");
		createDialogs();
		
		System.out.println("Creating menu bar.");
		createMenu();
	}