--- a/modules/graphics/src/main/java/javafx/scene/image/Image.java +++ b/modules/graphics/src/main/java/javafx/scene/image/Image.java @@ -38,6 +38,7 @@ import java.util.concurrent.CancellationException; import java.util.regex.Pattern; import javafx.animation.KeyFrame; import javafx.animation.Timeline; +import javafx.application.Platform; import javafx.beans.NamedArg; import javafx.beans.property.ReadOnlyBooleanProperty; import javafx.beans.property.ReadOnlyBooleanWrapper; @@ -892,11 +893,11 @@ public class Image { } public void start() { - timeline.play(); + Platform.runLater(timeline::play); } public void stop() { - timeline.stop(); + Platform.runLater(timeline::stop); } private void updateImage(final int frameIndex) {