JavaFX: Bug in Timeline(?!)
The behavior of the Timeline has changed for performance reasons in 1.3. Now the sequence containing the KeyFrames is only recalculated/updated if you call evaluateKeyValues manually.
But also the behavior has changed in another way:
I have a Timeline that contains an optional KeyFrame. When looking at the docs the timeline should simply skip a KeyFrame if the time is negative:
KeyFrames having time < 0s will be ignored by the Timeline.
Exactly what I am looking for. But never believe the documentation:
[cc lang="c"]
Timeline {
keyFrames: [
KeyFrame {
time: -1ms
action: function () {
throw new UnsupportedOperationException("aaah!");
}
}
]
}.playFromStart();[/cc]
This small snippet throws the exception… Any ideas or comments?
April 28th, 2010 at 01:49
Hey, thanks for the report. Filed here: http://javafx-jira.kenai.com/browse/RT-8558
May 3rd, 2010 at 01:40
[...] for custom controls‘, ‘JavaFX Light Bulb with improved UI performance‘, ‘JavaFX: Bug in Timeline(?!)‘, ‘JavaFX: Transparency and Linux‘, ‘New JavaFX default font (Amble [...]