Help me! Component

Hi.
I want create portlet display same as :

And when I click “Nâng cao” then display :

and not create new portlet

but i don’t know how to use components to do so. Everybody can help me.
Thank you!

If you haven’t been there already,
Sampler
has a lot of good material and examples about components and how to use them.