The Resizable mixin provides a number of functions to identify a given resizable node's sizing preferences, including minimum, preferred, and maximum sizes, as well as fill and grow preferences. The container
classes will use these preferences when resizing nodes during layout, however such preferences can be overridden on a per-node basis using the LayoutInfo
class.
The layout containers automatically manage the dynamic layout behavior of their content nodes. However, it is often desirable to also use the binding mechanism of the JavaFX Script to establish certain dynamic aspects of layout. For example, you can bind the width and height of an HBox container to the Scene
height and width so that whenever Scene
resizes, the HBox
container resizes as well.