public void setCounterPosition(String where) throws Exception
	{
		Position newPosition = null;
		if (where.equalsIgnoreCase("upper-left"))
			newPosition = Position.UPPER_LEFT;
		else if (where.equalsIgnoreCase("upper-right"))
			newPosition = Position.UPPER_RIGHT;
		else if (where.equalsIgnoreCase("lower-left"))
			newPosition = Position.LOWER_LEFT;
		else if (where.equalsIgnoreCase("lower-right"))
			newPosition = Position.LOWER_RIGHT;
		else if (where.equalsIgnoreCase("center"))
			newPosition = Position.CENTER;
		else if (where.equalsIgnoreCase("nowhere"))
			newPosition = Position.NONE;
		if (newPosition == null)
			throw new Exception("Position " + where + " is not understood");
		lock();
		counterPosition = newPosition;
		unlock();
	}