How to modify of appearance of cell in table

I want to show integers in table cells…

Instead of typical String with number I want to have something like this (attachment)

How may I reach this look ? (the number in green circle)

if you wish to paint all cells. Else I would suggest you do use ColumnGenerator where you apply custom styles(may be using CSS 3 features) to all your cells in that particular column. As far as my knowledge I see only these two options of which, if you have only one column where you have to display like shown use the later option else the former.


thanks, but in this way…

table.setCellStyleGenerator(new Table.CellStyleGenerator() {

        private static final long serialVersionUID = 1344976017684037988L;

        public String getStyle(Table source, Object itemId, Object propertyId) {
            if (propertyId == A) {
                return "green";
            else if (propertyId == B) {
                return "red";
            return "";         

[/code]… I may fill cell with solid color.

But I want paint a circle into table cell (attached - firs post). How May I create this ?