به کد زیر نگاه کنید:
<g:TabPanel ui:field="mainTab" width="100%">
<g:Tab text="Header1" >
<g:FlowPanel ui:field="tabPanel1">
<g:Button text="test1"/>
</g:FlowPanel>
</g:Tab>
<g:Tab text="Header2">
<g:FlowPanel ui:field="tabPanel2">
<g:Button text="test2"/>
</g:FlowPanel>
</g:Tab>
</g:TabPanel>