You must provide a RowStyles object that returns css class names for each row. Thus, to set a specific color for a string, you need to define a css class with that color, and then force the RowStyles object to return this class for the corresponding strings.
I think you set this with cellTable.setRowStyles or something similar.
cellTable.setRowStyles(new RowStyles<T>() { @Override public String getStyleNames(T rowObject, int rowIndex) { if (rowIndex == 3) { return "bluetext"; } else { return "normaltext"; } });
source share