Going to Fullscreen mode in JavaFX causes a giant message telling the user that he can leave this mode pressing ESC
. Not only this takes the "desktopish" feeling off my application, it also looks ugly.
I guess this message is not ment to be suppressed, so my hope is that i can at least brand it. So, how can i style it?
JavaFX 8 has a way to suppress this message:
stage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
There is a requests to Allow trusted apps to disable the fullscreen overlay warning and disable the "Exit on ESC" behavior and Touch Screen only - Press ESC to exit full-screen mode. does not apply. Neither request has been implemented as of JavaFX 2.2.
There are no requests to allow the message to be styled that I could find. You could create one under the JavaFX Runtime project, but I think it would be rejected due to potential security concerns.
You can just completely disable the message with:
primaryStage.setFullScreenExitHint("");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With