How to disable Press ESC to exit full screen-mode meassage in javafx

javafx

Solution

As of JavaFX 8.0, you can call

stage.setFullScreenExitHint("");

to disable the message in a trusted application. Note that, according to the documentation setting the hint to `null` will not disable it, but will revert to the system-default message.

Problem

I am working on Javafx application,my question is When my application starts it shows one message Press ESC to exit full screen-mode and this is very annoying for me, I don't want to display this message,I went through the link shown here : How to style JavaFX 2 Fullscreen message? but it didn't worked for me.please help me to get out of this problem. Thank You

Original source

Related problems