I have done the following using AWT...

Panel p1 has two buttons b1 and b2. After clicking 2 buttons, Panel p1 is extended by other 2 panels in which each panel has 1 checkbox, ch1 and ch2.

Now after clicking on each of the above checkboxes, I want to have 2 more panels?

So there will be 3-level hierarchy of panel like

panel 1
-----> panel 2 and panel 3
---------------> panel 4 and panel 5

Is it possible? If yes, how?

Thanks in advance.