We’ve been using Java AWT and Swing and needed full screen exclusive mode. (Not using JavaFX at the moment – but will be transitioning soon.)
This tutorial provides a nice way to enter full screen mode:
One problem that I faced was getting out of full screen mode after setting a window/JFrame as full screen.
The solution turns out to be simple: