Is there any way to hide controls in javaFX so that they do not take up space? I have seen that in android it is possible:
What comes to mind is this:
control.setVisible(false); control.setMinSize(0,0); control.setMaxSize(0,0); control.setPrefSize(0,0);
but it keeps the space and forces me to restore the original sizes once the controls are visible again.