Home Segments Top Top Previous Next

983: Mainline

You alter a table's behavior in one of two ways. You can call a method with a target of the default table model, the default table-column model, or the default table-cell renderer. Or, you can substitute your own table model, table-column model, or table-cell renderer for the defaults supplied automatically.

If you want to substitute your own model or renderer, you use the setters corresponding to the getters—namely setTableModel, setColumnModel, and setTableCellRenderer.