Advertisement
Nick-O-Rama

CircleStartPause

Oct 2nd, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1.         circle.setOnMousePressed(e->{
  2.             if (animation.getStatus().equals(animation.getStatus().RUNNING))
  3.                 animation.pause();
  4.             else
  5.                 animation.play();
  6.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement