JSplitPane problem with Border layout
I am using Swing utilities.
I have a JFrame
I am using Panel with BorderLayout(mainPanel)
To this Panel i am adding a Button Panel which comprises of two JButtons.
Now i am creating a BorderedLayout Panel (subPanel)and setting its size and adding it to the mainPanel to its West side.
Now my requirement is having the Split Panel with JTree on left side Panel and Canvas on the right side Panel
So i created a JScrollPane with Canvas attached to it with Always Scrollable option set for the right hand side Panel.
For the left hand side Panel, i created the JPanel with JTree attached to it.
I have passed these two components as parameters to the JSplitPane with Horizontal Split and added the splitPane to the subPanel.
Now i got the Split Pane with JTree on the left side Panel and Canvas on the right side panel.
Now my requirement is getting the Text Area and Progress /Status bar below the Split Pane.So first made a JTextArea with BorderLayout and added it to the subPanel to
its South.To this TextArea i added a progress bar to show the status to its East.
Everything till here were working fine.
Problem is while i am moving the split pnae to its right side (towards Canvas ) the Canvas is getting shifted beyond the subPanel.
How to solve this problem
I will be thankful to you if anyone could give me the solution ASAP

