Answer the question
In order to leave comments, you need to log in
How to automatically size elements in javafx?
And so the crux of the matter is, there is a javafx application with a scene of some size. It contains elements of a table, buttons, checkboxes, graphics. How to make it so that when the application window is resized, some elements change their size in proportion to how the main window was resized. And the arcs kept the same size.
Example. At startup, the size of the main application window is 1000px x 500px. The user resizes with the mouse and the main window is now 500px x 100px. How to make the table smaller by 5 times, the size of the buttons by 2, and the charts and checkboxes remain unchanged?
Answer the question
In order to leave comments, you need to log in
Learn how layouts behave (controls on the "Containers" tab), for example GridPane, StackPane, AnchorPane, then experiment with them
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question