Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Build a JavaFX Application It's About Time Timeline and Animations

Nancy Melucci
Nancy Melucci
Front End Web Development Techdegree Student 34,491 Points

Can't figure out not obvious from video or application code...

I am sure I am missing it but I've watched the video repeatedly, looked at my application code and still don't have a clue. From the quiz...

"If we wanted to run the keyframes (or pages) 5 times we'd write the following code:"


2 Answers

Andrew Winkler
Andrew Winkler
37,737 Points

If you look back to 1:50 in the Timeline Animation video, you'll find that your looking for the setCycleCount() method.

Therefore the code should be:


If this was helpful, please vote best answer! Happy coding!

chase singhofen
chase singhofen
3,811 Points

super helpful. i need to pay attention in videos more. i was typing keyFrames instead which is wrong. thx