I have a JavaFX application which has only one FXML file. In this file I have one AnchorPane which has a StackPane inside it. Here is the screenshot:
No need to cede.
just select pane ,right click then select Fit to parent.
It will automatically resize pane to anchor pane size.