I want to add panels within a panel dynamically, since i dont know upfront the numbers of panels which i need to add.

This works fine if i do

```
panel.insert(<panel to be added>);

```

The parent panel is configured with the hbox layout.

But if the overall width of added panels goes beyond the parent panel width then there is a overflow and a horizontal scrollbar appears.

Rather what i am looking is it should add the panels to the next line automatically if it reaches the parent panels width.

Any solution to the above problem, might be i need to use some other layout here but not sure on that.

Thanks