How can I create multiple collapsible panes in Java FX?
The end result would be two panes on, say, the right-hand side of screen. If one is open, it takes up a third of the screen on the right. If both are open, then one will fill up the top-right-hand corner, and the other the bottom right-hand corner. This would not result in the content of each pane being shrunk, but some of it hidden, with the user able to scroll down each pane to see the hidden content.
Each can be opened / closed by clicking a button on the screen.
Thank you!
I'm not exactly sure I have the description right, but this should be enough to get you started. Use a
TitledPanefor the collapsible panes, and put them inside something that can evenly distribute the vertical space, such as aGridPanewith appropriateRowConstraints. Put theGridPanein the right side of aBorderPane.SSCCE: