public void move(Point loc) {
		if (loc == null) {
			setCurrentTab(defaultTab);
			return;
		}
		if (getTabBackground(curTab).contains(loc))
			return;
		Rectangle[] rects = buildHeaders();
		for (int i = 1; i < rects.length; i++) {
			if (rects[i].contains(loc)) {
				setCurrentTab(i - 1);
				return;
			}
		}
		setCurrentTab(defaultTab);
	}