
163Uitools
the eld with str2double(sprintf(‘%.0f’, myData)) or to cast the data as integers (uint8(myData))
in order to prevent showing any decimals.
While HTML content provides very easy and simple font customization, greater control can
be achieved by using com.jidesoft.grid.StyledTableCellRenderer as the table
column’s cell renderer (StyledTableCellRenderer extends JIDE’s StyledLabel,
which is described in Section 5.5.1). There are similar renderers for trees and lists.
A different renderer, which I have called ColoredFieldCellRenderer, can be used to
set a specic color (and/or tooltip) for specic table cells.
23
cr = ColoredFieldCellRenderer; ...