stage.setMaximized(boolean)

Read more of this post