how to make javafx full screen default

Java
stage.setMaximized(boolean)
Source

Also in Java: