public int getJointIndex(Joint joint) {
        for (int i = 0; i < jointList.length; i++) {
            if (jointList[i] == joint) {
                return i;
            }
        }

        return -1;
    }
returns the bone index of the given bone

@param joint the Joint to search for
@return the index (&ge;0) or -1 if not found
jme3-core/src/main/java/com/jme3/anim/Armature.java