Hi,
We cannot use relative size with vertically placed contentpanes. How can we set width of ContentPanes placed vertically in SplitPane?
Thanks,
Imad.
RelativeSize is used to distribute the available size in the direction of the orientation (e.g. the Height of the RelativeSizes are compared when the panes are arranged vertically). The size of the content(s) or the extent of the root splitpane will drive the other extent. So for example if the root docked SplitPane is docked to the left/right then the Width would determine the extent. When the Width is NaN (which is the default) then panes are measured with the available size and so the size of the content affects the size they will be.
Thanks Andrew, I have set RelativeSize to my vertical ContentPanes the way you suggested. Now the problem is as soon as one of the ContentPane is re position to some other area of SplitPane and then moved to its previous position it doesn't retain its original size.
Please find attached the sample program to see the problem. Move the "Viewer' ContentPane from its position and make it as the tabDocument of its adjacent ContentPane. Now move it back to its original position, it will loose its original size. I can this be made to retain its size?