public void mousePressed(MouseEvent e) {
		if (stateChanged) {
			//saveUndoState();
			stateChanged = false;
		}
		switch (e.getButton()) {
		case MouseEvent.BUTTON1:
			btn1Pressed = true;
			mapClicked(e.getX(), e.getY());
			this.repaint();
			break;
		/*
		 * default: btn2Pressed = true; Dimension d = viewport.getSize(); Point
		 * newPoint = new Point((int)(e.getX() - d.getWidth()/2), (int)(e.getY()
		 * - d.getHeight()/2)); viewport.setViewPosition(newPoint);
		 * viewport.repaint(); break;
		 */

		default:
			btn2Pressed = true;

			grabX = e.getX();
			grabY = e.getY();
			System.out.println("Grab at " + grabX + ", " + grabY);

			break;
		}
	}