This topic describes the steps for creating a table with rows. To create a row that is not in a table, see Creating a Row Using RowLayout.
To insert a table and row using tableLayout and rowLayout:
The tableLayout node is inserted and highlighted under the expanded parent node.
The rowLayout node is inserted and highlighted under the expanded tableLayout node.
...
<pageLayout>
<!-- Insert tableLayout and rowLayout -->
<contents>
<header text="Here is a table with two rows">
<tableLayout width="75%"
borderWidth="3"
cellSpacing="10"
hAlign="center">
<contents>
<rowLayout hAlign="right">
<contents>
First Column
<cellFormat vAlign="bottom">
<contents>
Second Column
</contents>
</cellFormat>
<flowLayout>
<contents>
Third Column
<spacer height="100" width="1"/>
</contents>
</flowLayout>
</contents>
</rowLayout>
<rowLayout>
<contents>
<header text="First Column Second Row"/>
<cellFormat columnSpan="2">
<contents>
<header text="Column Span Two"/>
</contents>
</cellFormat>
</contents>
</rowLayout>
</contents>
</tableLayout>
</header>
</contents>
<!-- REST OF PAGE LAYOUT -->
</pageLayout>
...
About TableLayout
About RowLayout
About CellFormat
Inserting a Child Component in a
RowLayout
Using CellFormat
Around RowLayout Child Components
Working with Layout Components
Copyright © 1997, 2004, Oracle. All rights reserved.