![]() |
![]() |
![]() |
![]() |
![]() |
|
To produce a component, cell renderers all contain a
getTableCellRendererComponent method. All cell renderers must have
that method because existence is imposed by the TableCellRenderer
interface.
In the tables that you have seen, the components displayed in
table cells are supplied by the getTableCellRendererComponent method
in the DefaultTableCellRenderer class, because an instance of the
DefaultTableCellRenderer class is used, by default, in JTable
instances.