title: Where is tie in to Component for CellRenderer and JTable or TableModel
body: <p>I have a data class that includes a register for the locations of errors for that specific row of the data structure.  I've used a TableModel within a JTable.   I'm now trying to add an additional feature where the cell background is changed if there is an error for that cell.</p>
  <p>The question I have is in the actual tie-in.  I can use to the <code>public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)</code> method, which returns a generic Component.  My understanding is that JLabels are used as a default for the table.  I've extended that class in order to keep the error state for that cell so that I can render it properly, as in background color is red if there is an error and the default if there is no error.</p>
  <p>I've looked within the AbstractTableModel documentation and haven't found anything with regards to the set up of the table which might suggest where to go to change the Component to the class I have built.  I've also looked in the TableModel documentation as well as the JTable documentation.</p>
  <p>Where would I go to tie in this 'ErrorLabel' class so that the TableModel uses it instead of the generic JLabel class?</p>
  <p>It may or may not be obvious, but I'm tired so there's that.</p>