From a726019b186f6955c02aad916e76ff351410be51 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Thu, 18 May 2023 19:10:36 +0200 Subject: [PATCH] lock fullscreen --- app/src/main/java/school_project/Controller.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/school_project/Controller.java b/app/src/main/java/school_project/Controller.java index 0f827ab..5d4956f 100644 --- a/app/src/main/java/school_project/Controller.java +++ b/app/src/main/java/school_project/Controller.java @@ -32,9 +32,6 @@ public class Controller extends Application { stage.setTitle("ROAD TO MASTER YOU"); // Full Screen mode - stage.setFullScreen(true); - stage.setFullScreenExitHint(""); - primaryStage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH); root = new MenuAccueil(); @@ -59,6 +56,10 @@ public class Controller extends Application { }); } stage.setScene(scene); + + stage.setFullScreen(true); + stage.setFullScreenExitHint(""); + stage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH); } public static void main(String[] args) { launch(); -- 2.46.0