public void setTimes(float[] times) {
        if (times.length == 0) {
            throw new IllegalArgumentException("TransformTrack with no keyframes!");
        }
        this.times = times;
        length = times[times.length - 1] - times[0];
    }
Sets the keyframes times for this Joint track

@param times  the keyframes times (alias created -- do not modify after
              passing it to this setter)
@throws IllegalArgumentException if times is empty
jme3-core/src/main/java/com/jme3/anim/MorphTrack.java