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

[1428 byte] By [arun_a] at [2007-10-3 3:02:22]
# 1

If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the code retains its original formatting.

camickra at 2007-7-14 20:52:08 > top of Java-index,Desktop,Core GUI APIs...