Guest User

Untitled

a guest
Oct 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. this
  2. Timeline timeline = new Timeline();
  3. timeline.getKeyFrames().addAll(
  4. new KeyFrame(Duration.ZERO,
  5. KeyValue.keyValue (label.textFillModel (), Color.WHITE)
  6. ),
  7. new KeyFrame(new Duration(5000),
  8. KeyValue.keyValue (label.textFillModel(), Color.BLACK)
  9. )
  10. );
  11. timeline.play ();
  12.  
  13.  
  14. into
  15. HTimeline t = new HTimeline ();
  16. t.at (0).set (label.textFillProperty (), Color.WHITE)
  17. .set (label.opacityProperty (), 1);
  18. t.at (5000).set (label.textFillProperty (), Color.BLACK)
  19. .set (label.opacityProperty (), 0.5);
  20. t.play ();
  21.  
  22.  
  23.  
  24. FIVE MINUTES
Add Comment
Please, Sign In to add comment