So the basic idea is you need to update the value of the slider each time you update your frame (using showFrameAt() with a timer). You should use the method .setValue(double value) to your slider object in order to update it.