From 71b7a1cb2b7b8721ccbde8853be72e8c54ad3b8c Mon Sep 17 00:00:00 2001 From: Yessine Ben El Bey Date: Wed, 6 May 2020 14:07:51 +0200 Subject: [PATCH] Boutton quitter --- src/ihm/controller/MenuController.java | 5 ++++- src/ihm/ressources/Menu.fxml | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ihm/controller/MenuController.java b/src/ihm/controller/MenuController.java index 4dc6e02..09c20b7 100644 --- a/src/ihm/controller/MenuController.java +++ b/src/ihm/controller/MenuController.java @@ -66,7 +66,10 @@ public class MenuController implements Initializable{ } - + @FXML + public void quitterLappli(MouseEvent mouseEvent) throws IOException{ + System.exit(0); + } public void afficherRegle(MouseEvent mouseEvent) { InputStream fileSound1 = getClass().getResourceAsStream("/ihm/ressources/musique/BEEP1.wav"); diff --git a/src/ihm/ressources/Menu.fxml b/src/ihm/ressources/Menu.fxml index c60402b..7e50725 100644 --- a/src/ihm/ressources/Menu.fxml +++ b/src/ihm/ressources/Menu.fxml @@ -40,6 +40,14 @@ +