Skip to content
Snippets Groups Projects
Commit e72fee73 authored by Ricardo Müller's avatar Ricardo Müller
Browse files

Program terminates now after saying no to a new game

parent 9219d5c2
No related branches found
No related tags found
No related merge requests found
......@@ -78,10 +78,10 @@ public class Controller {
Button noBtn = new Button("No");
yesBtn.setOnAction(e->{
restart();
System.exit(0);
stage.close();
});
noBtn.setOnAction(e->{
stage.close();
System.exit(0);
});
VBox layout = new VBox(10);
layout.getChildren().addAll(winnerLabel, label, yesBtn, noBtn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment