lock fullscreen #71

Merged
tonitch merged 1 commits from LockFullScreen into master 2023-05-18 19:12:58 +02:00

View File

@ -32,9 +32,6 @@ public class Controller extends Application {
stage.setTitle("ROAD TO MASTER YOU"); stage.setTitle("ROAD TO MASTER YOU");
// Full Screen mode // Full Screen mode
stage.setFullScreen(true);
stage.setFullScreenExitHint("");
primaryStage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
root = new MenuAccueil(); root = new MenuAccueil();
@ -59,6 +56,10 @@ public class Controller extends Application {
}); });
} }
stage.setScene(scene); stage.setScene(scene);
stage.setFullScreen(true);
stage.setFullScreenExitHint("");
stage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
} }
public static void main(String[] args) { public static void main(String[] args) {
launch(); launch();