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 @@ +