how to achieve resizability in javafx?

Tags: ,

I have an AncharPane in which all components are placed/designed using Fxml but the problem is, when the frame resize all components are stick with its current position.


With AnchorPane, you can’t get automatic resizing unless you have to resize your views one by one in the controller/code.

If you want autoresize, use BorderPane, VBox or HBox.

Source: stackoverflow