how to remove a components from the panel by using vaadin7?

Hi All
Iam learning in vaadin7.Please let me know I have a problem in how to remove a components from the panel by using vaadin7.

Please don’t post duplicate questions (Duplicate:
https://vaadin.com/forum#!/thread/7832887
)
A Panel always contains a Layout and the Layout contains the UI elements like Labels, Buttons, Textfields, …
So it’s:
Panel
→ Layout
–>Components like Labels, Buttons, TextField,…

To remove/replace the entire layout below the panel you can use panel.setContent(…)
To remove a Component below the layout you can get the layout using panel.getContent() . From that you can then use removeComponent(…) to remove the actual component.

All of these things are quite basic topics which are covered by the Book of Vaadin 7.