Win a copy of Emmy in the Key of Code this week in the General Computing forum!

Scott Greeniee

Greenhorn
+ Follow
since Nov 08, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Scott Greeniee

Thanks, turns out I was using the wrong Duration class - I was using java.time.Duration instead of javafx.util.Duration, which is why I had to convert it to a long. All good now!
4 days ago
I am trying to get a void method action() to run every 0.5 seconds using Timeline in JavaFX.
Here is what I have tried:


However, I am getting the error "The construction KeyFrame(Duration, new EventHandler(){}) is undefined".
Thanks for any help!
5 days ago