Java Reference
In-Depth Information
Figure 3.5. The
AbstractTableModel
class provides defaults for all but a few of the
methods in
TableModel
.
Suppose that you want to show a few rockets in a table, using a Swing user interface. As
Figure 3.6 shows, you can create a
RocketTable
class that adapts an array of rockets to
the interface that
TableModel
and
AbstractTableModel
expect.