public int getBottomCenterX(Container parent, Component component) {
		LinkedList<Component> components = new LinkedList<Component>();
		LinkedList<Integer> locations = new LinkedList<Integer>();
		for (int index = 0; index < parent.getComponentCount(); index++) {
			components.add(parent.getComponent(index));
		}
		int centerX = parent.getWidth() / 2;
		int width = getWidth(bottomCenter);
		int x = centerX - (width / 2);
		for (Component c : bottomCenter) {
			int index = bottomCenter.indexOf(c);
			if (index > 0) {
				x += getDimensions(bottomCenter.get(index - 1)).width;
				x += hgap;
			}
			locations.add(index, x);
		}
		if (bottomCenter.contains(component)) {
			return locations.get(bottomCenter.indexOf(component));
		}
		return x;
	}