public int determineInsertIndex(Point p){
		//first
		if(children.size() == 0)
			return 0;
		
		if(p.y <= children.get(0).getY())
			return 0;
		
		//middle
		for(int i = 0; i < children.size(); i++){
			ComponentPanel child = children.get(i);
			if(p.y > child.getY() && p.y < child.getBottomY()) //click isn't between any panels and it's "inside"  a panel
				return i;
			if( i+1 < children.size() && p.y >= child.getBottomY() && p.y <= children.get(i+1).getY())
				return i+1;
		}
				
		return children.size(); //last
	}