JPanel with FlowLayout at NORTH position in BorderLayout

Hi,

I have a JPanel (panel 1)with Flowlayout to which I can add JButtons dynamically. This panel1 is added to another JPanel whose layout is BorderLayout. I have a desktoppane as center component.

The problem I have is, when i add buttons dynamically, panel1 does not automatically wrap the buttons to next row when first row is full. any suggestions how to automatically increase the size of NORTH side of Borderlayout. Or is it that Borderlayout doesnt suit my need?

Thanks in advance

[512 byte] By [vicky1981a] at [2007-11-27 6:09:46]
# 1
WrapLayout, found here, can help with your buttons. http://www.discoverteenergy.com/files/WrapLayout.java(I know you saw it in the other thread, but just in case someone else doesn't)
bsampieria at 2007-7-12 17:14:15 > top of Java-index,Desktop,Core GUI APIs...