-
FEATURED COMPONENTS
First time here? Check out the FAQ!
HI All,
I want to write tabbox code inside borderlayout but getting error.
can anyone help me to solve this?
<window border="normal" width="320px" height="320px">
<borderlayout width="300px" height="300px">
<north splittable="true" collapsible="true">
<div height="100px" style="background:#008db7;color:white;">N</div>
</north>
<south splittable="true" collapsible="true">
<div height="100px" style="background:#112f37;color:white;">S</div>
<tabbox height="80px">
<tabs>
<tab label="Tab 1"/>
<tab label="Tab 2"/>
</tabs>
</tabbox>
</south>
</borderlayout>
</window>
manishashrm,
The simplest fix is to wrap everything you have in the <south> with a <div> - like this:
<window border="normal" width="320px" height="320px"> <borderlayout width="300px" height="300px"> <north splittable="true" collapsible="true"> <div height="100px" style="background:#008db7;color:white;">N</div> </north> <south splittable="true" collapsible="true"> <div> <div height="100px" style="background:#112f37;color:white;">S</div> <tabbox height="80px"> <tabs> <tab label="Tab 1" /> <tab label="Tab 2" /> </tabs> </tabbox> </div> </south> </borderlayout> </window>
Regards,
Todd
Asked: 2012-06-26 12:12:32 +0800
Seen: 99 times
Last updated: Jun 26 '12