PDA

View Full Version : BorderLayout Collapsing issues



ClassicCrime
2 Apr 2009, 12:54 PM
I currently have a ContentPanel that has a BorderLayout with three BorderLayoutData's create for the East, South, and Center. I have the East and South collapsible by a ToolButton and utilizing the SelectionListener to tell which region to collapse. The East and South panels can be dragged to the West or North and dropped to fit there. If I click my ToolButton to collapse, for example the East region, it will collapse to that region. If I then move the East region to the West and collapse it it collapses back to the East.

I've traced through everything and know that I'm passing the right region in to collapse but for some reason it sets it back to the region it was dragged from.

Is there something saving the state of the ContentPanel that it causes it to go back to the old region? I've called the layout() method on the ContentPanel but it still doesn't work.

Any ideas?