The following is an example for HTMLTableRow:
// Create a row and set the alignment. HTMLTableRow row = new HTMLTableRow(); row.setHorizontalAlignment(HTMLTableRow.CENTER); // Create and add the column information to the row. HTMLText account = new HTMLText(customers_[rowIndex].getAccount()); HTMLText name = new HTMLText(customers_[rowIndex].getName()); HTMLText balance = new HTMLText(customers_[rowIndex].getBalance()); row.addColumn(new HTMLTableCell(account)); row.addColumn(new HTMLTableCell(name)); row.addColumn(new HTMLTableCell(balance)); // Add the row to an HTMLTable object (assume that the table already exists). table.addRow(row);