public Component componentForPoint (Component source, Point sourcePoint)

Returns the component in the currently selected path which contains sourcePoint.

Parameters:
source    The component in whose coordinate space sourcePoint is given
sourcePoint    The point which is being tested

Returns:  The component in the currently selected path which contains sourcePoint (relative to the source component's coordinate space. If sourcePoint is not inside a component on the currently selected path, null is returned.