Managing JavaFx BorderPane Area Sizes

Is it possible to change the default size of regions (left, right, top, bottom) of BorderPane areas? In the case of upper and lower height changes and in the case of upper and lower width?

+4
source share
1 answer

I assume that you mean "In the case of changes in the top and bottom vertices and when changing the left and right width?"

It is not possible to set these sizes, but instead, you can set preferredSize, maxSize or minSize for the node of each of these regions depending on the situation you want to prevent, since the BorderPane areas change to their node size somehow. see " Change Range " in the BorderPane Document .

Maybe you should edit your question and give more details.

+6
source

Source: https://habr.com/ru/post/1498012/


All Articles