- Code: Select all
GroupTable groupTable = new GroupTable(model);
int columnCount = getColumnModel().getColumnCount();
for (int i = 0; i < columnCount; i++) {
final TableColumn tableColumn = getColumnModel().getColumn(i);
TableCellRenderer renderer = controller.getCellRenderer(i);
renderer = AlertView.cellRenderer;
tableColumn.setCellRenderer(renderer);
}
the first time I see the table is correct, all records are displayed as they are defined in the renderer, but when I group the table by a field, apparently is not applying the custom renderer any more.
Is there any way to implement custom renderer when a grouping is done.
The screenshots of the table before/after are attached.
Thanks.
Robertho.