You are here

Resizing UI Controls in JavaFX 2.0

This artical focusses on the challenge we had to manage resizing complex screens in our Medical Record Software.

Resizing of the Root: Everything that extends Region or Control and is set as the root will automatically fit to the Scene. Anything that extends Group will not. If you do not want the application to resize with the scene, add a Group as the root.

Resizing of Child Nodes: The size of a resizable node (Region, Control, WebView) will depend on two things:

1) It's own min/pref/max size preferences

2) The sizing policy of its parent


More information can be found on my blogpost at e-Zest.