Skip to content
Advertisement

how to achieve resizability in javafx?

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.

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement