Could a java guru help a fella out?
We have a few power tables where we need to set row background colors based off of numerous factors.
We cannot use the configureCell extension since we change the underlying dataset on the fly and the column names change along with it.
Could someone post just an example of overriding the renderer based on column values?
Something like below?
JTable table = new JTable(…)
public Component prepareRenderer(
TableCellRenderer renderer, int row, int column)
Component c = super.prepareRenderer(renderer, row, column);
// add custom rendering here return c; }