HTMLTableCaption class
The
HTMLTableCaption class creates a caption for your HTML table.
The class provides methods for updating and retrieving the
attributes of the caption. For example, you can use the
setAlignment() method to specify to which part of the table the
caption should be aligned. The following is an example for
HTMLTableCaption:
// Create a default HTMLTableCaption object and set the caption text.
HTMLTableCaption caption = new HTMLTableCaption();
caption.setElement("Customer Account Balances - January 1, 2000");
// Add the table caption to an HTMLTable object (assume that the table already exists).
table.setCaption(caption);