This content has been marked as final. Show 2 replies
I haven't tried it, but what happens if you call setMaxWidth(...) on one of the panes inside the SplitPane?
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):
SplitPane.setResizableWithParent( componentNotToResize, false );
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.