Class SwingMessageTable.CellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer
Enclosing class:
SwingMessageTable<D>

protected class SwingMessageTable.CellRenderer extends JLabel implements TableCellRenderer
Specialized cell renderer which gets data from the table model, constrcuts the text and sets the cell background color.
See Also:
  • Field Details

    • textRenderer

      final JTextArea textRenderer
      Auxiliary reusable GUI component to render the text of one table cell.
  • Constructor Details

    • CellRenderer

      protected CellRenderer()
  • Method Details

    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSel, boolean hasFoc, int row, int col)
      Called by the Swing framework to render the cell at the given coordinates. All data is retrieved explicitly from the TableModel. (The param "value" is ignored)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer