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

