Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void handleButtonAction(ActionEvent event) {
- Timeline animation = new Timeline();
- KeyFrame kf = new KeyFrame(Duration.millis(18), new EventHandler <ActionEvent>() {
- public void handle(ActionEvent e) {
- spin();
- }
- });
- payout();
- animation.setCycleCount(30);
- animation.getKeyFrames().add(kf);
- animation.play();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement