How can I control the width/height distribution on a JavaFX SplitPane when a resize operation occurs? I would like one of the components to be unaffected by a resize, leaving the divider where it is, rather than distributing the resize weight evenly between both components. SplitPane seems to have no way to control the resize weight the way Swing's JSplitPane does. Is there way to do this (using FXML, preferrably)?
setMaxWidth would prevent that element to be sized larger than that, but in a similar thread, user 963038 mentioned the solution that does the trick (user can continue to resize, but the comonent is not auto-resized when the parent is resized):
Notice that unlike JSplitPane, JavaFX SplitPane can handle more than two components with N-1 splits. Calling the static setResizableWithParent with the component that should not be auto-resized works at least in my case, and I expect it to work just fine so long as not all components in the SplitPane are "frozen" like this.