Removeall for Card layout
I am trying to add remove components or panels into card layout dynamically.
Is there a removeall command in the cardlayout so that all the panels inside it can be destroyed/removed.
I think tabpanel has such thing but cardlayout doesnot seem to have this.
eg I have 3 items panel1, panel 2, panel3
someething like cardlayout.removeAll() which will remove all the panels
Thanks for the help in advance.
It's a method of the Container.