I have several components into BorderPane
which can be visible or not using checkbox.
When I set component not to be visible I get empty space which I want to fill by resizing the next component. What are the available options to configure the components to fill the empty space when component is set to .setVisible(false);
?
You need to call setManaged(false)
as well.
You can take advantage of bindings to set managed property automatically based on visibility.
E.g. component.managedProperty().bind(component.visibleProperty());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With