javafx set scene fullscreen code example Example: how to make javafx full screen default stage.setMaximized(boolean)