import javax.swing.JTable;
public class UncommittedChangesTableCellRenderer extends ColoredTableCellRenderer{
@Override
protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
UncommittedChange change = (UncommittedChange) value;
if (column == 0) {
setIcon(change.getIcon());
append(change.getDisplayFilePath(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
} else if (column == 1) {
append(change.getChangesCount() + " uncommitted changes", SimpleTextAttributes.REGULAR_ATTRIBUTES);
}
}