public java.awt.Component | getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int col)
//--------------------------------------------------------------------------
// Private Variables:
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Constructors:
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Public Methods:
//--------------------------------------------------------------------------
if ((row % 2) == 0) {
setBackground(_color);
} else {
setBackground(Color.white);
}
FilteredLogTableModel model = (FilteredLogTableModel) table.getModel();
LogRecord record = model.getFilteredRecord(row);
setForeground(getLogLevelColor(record.getLevel()));
return (super.getTableCellRendererComponent(table,
value,
isSelected,
hasFocus,
row, col));
|