I have several components in BorderPane that may or may not be visible. When I set the component not visible, I get an empty space that I want to fill by resizing the next component. What are the available options for setting components to fill in the empty space if the component is set to .setVisible(false); ?
.setVisible(false);
You also need to call setManaged (false).
You can use bindings to automatically configure a managed property based on visibility. For instance. component.managedProperty().bind(component.visibleProperty());
component.managedProperty().bind(component.visibleProperty());
Source: https://habr.com/ru/post/1489126/More articles:setLayoutParams dip values - androidWhy use static enumeration? - javaModulo arithmetic not optimized by gcc? - optimizationFinding an IEnumerable Object Type - c #Is there a way to create a code snippet with automatically creating a usage link? - c #REST - representations of resources and collections - restUncaught SyntaxError: Invalid flags provided to RegExp 'Capture' constructor - javascriptPython - csrf protected render - pythonPartially taunts MockingKernel for an abstract class? - unit-testingCGAL Tutorial for Beginners - c ++All Articles