Programmatically move divider/separator in JXMultiSplitPane
I've recently discovered JXMultiSplitPane and it's fantastic to use. However I could not find an equivalent setDividerLocation() method that was present in JSplitPane. Could anyone tell me how I could programmatically move the divider in JXMultiSplitPane?
My reasons for wanting this are as follows:
Say I have 2 components (A and B for simplicity's sake) divided in the middle. I would like to dynamically add components in A, however, when the scrollbar appears, I would like to move the divider to accommodate for the scrollbar by taking some of B's space. When I was using JSplitPane, I did this programmatically by moving the divider. I cannot use JSplitPane because I have more than 2 dividers and I do not want to nest multiple JSplitPanes.
Any help or hints towards the right direction would be much appreciated. Thanks in advance.