Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this
- Timeline timeline = new Timeline();
- timeline.getKeyFrames().addAll(
- new KeyFrame(Duration.ZERO,
- KeyValue.keyValue (label.textFillModel (), Color.WHITE)
- ),
- new KeyFrame(new Duration(5000),
- KeyValue.keyValue (label.textFillModel(), Color.BLACK)
- )
- );
- timeline.play ();
- into
- HTimeline t = new HTimeline ();
- t.at (0).set (label.textFillProperty (), Color.WHITE)
- .set (label.opacityProperty (), 1);
- t.at (5000).set (label.textFillProperty (), Color.BLACK)
- .set (label.opacityProperty (), 0.5);
- t.play ();
- FIVE MINUTES
Add Comment
Please, Sign In to add comment