Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+12 votes

Has anyone figured out how to make a screen scalable in SceneBuilder?

asked in CSC305 Fall 2023 by (1 point)
+2

Do we have to use percentages somewhere? For our project, we are using an Anchor Plane.

1 Answer

+5 votes

In general, other layouts tend to be more responsive than AnchorPane.

Consider using: BorderPane for the root element, Hbox/Vboxes when appropriate. Possibly a FlowPane, a GridPane, or nested BorderPanes.

AnchorPane can still be useful in some places in your UI, but don't overuse it.

Creating a good responsive layout for any screen size can be a challenge, but it is possible.

answered by (3.9k points)
...