public void paintWindow(Graphics g) {
		g.setColor(Color.LIGHT_GRAY);
		g.fillRect(window.x, window.y, window.width, window.height);
		g.setColor(Color.BLACK);
		g.drawRect(window.x, window.y, window.width, window.height);
		// Title
		g.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24));
		g.drawString("Mr. Portal", window.x + (window.width -
				g.getFontMetrics().stringWidth("Mr. Portal"))/2, window.y + 25);
		//Buttons
		int money = model.getBankAccount().getMoney();
		paintButton(g, "Exit", exitButton, new Color(172, 0, 0));
		paintButton(g, "Scan ($" + scanPrice + ")", scanButton,
				(money>=scanPrice)?buttonEnabledColor:buttonDisabledColor);
		paintButton(g, "Colonize ($" + Configurables.COLONIZE_PRICE + ")", colonizeButton,
				(money>=Configurables.COLONIZE_PRICE)?buttonEnabledColor:buttonDisabledColor);
		paintButton(g, "Travel ($" + Configurables.TRAVEL_PRICE + ")", travelButton,
				(money>=Configurables.TRAVEL_PRICE)?buttonEnabledColor:buttonDisabledColor);
		// Galaxy pane
		g.fillRect(galaxyPane.x, galaxyPane.y, galaxyPane.width, galaxyPane.height);
		// For making them appear in a spiral
		int x = 0, y = 0, dx = 0, dy = -1, t = (int)Math.ceil(Math.sqrt(planets.size()));
		for(Planet planet : planets) {
			if(galaxyPane.intersects(new Rectangle((x * 100) + xOff - 75/2, (y * 100) +
					yOff - 75/2, 75, 75)))
				paintPlanet(g, planet, x * 100, y * 100);
			if((x == y) || ((x < 0) && (x == -y)) || ((x > 0) && (x == 1-y)))
	            t = dx; dx =- dy; dy = t;
	        x += dx; y += dy;
		}
	}