How to change scene when in fullscreen in JavaFX and avoid "Press ESC to exit fullscreen" message


How is it possible to change scene of fullscreen window and avoid to show "Press ESC to exit fullscreen" message?

I'm building fullscreen desktop application (touchscreen kiosk) so I can show this message at the beginning, but now always when user changes scene.

There are two problems:

  1. When in fullscreen and scene is changed, window size is reduced. Solution is to toggle fullscreen, but there is that message shown. (Change scene in full screen JavaFX)

  2. "Press ESC.." message cannot be disable due to security reasons (


5/23/2017 12:16:59 PM

Accepted Answer

JavaFX 8 has solved this problem with the addition of the following 2 methods:

If you set the exit key combination to KeyCombination.NO_MATCH the pop-up message will be disabled completely.

12/5/2013 1:03:13 PM

on 2. there's going to be a new feature in JavaFX8 to turn that warning of. The current proposal is that there's going to be a command line option. You can see the discussion on the openjfx mailing list (

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow