Suppose I have a panel and 2 buttons on it. If buttonA is pressed, a textfield component will be displayed. Similarily, when another button, buttonB is pressed, a textfield and a list components will be displayed.
I would like to know how can I destroy those previous appeared components and let other components display on the panel?
Can I display different panels depends on which button is pressed? But the problem is how can I destroy the previous appeared panel?
Thank you for your help!!!