contents.setText((value == null) ? "&nbsp;" : value.toString());
contents.setText(null); contents.setIcon((Icon) null); if (value == null) contents.setText("&nbsp;"); else if (value instanceof Icon) contents.setIcon((Icon) value); else contents.setText(value.toString());
    public SComponent getTableCellRendererComponent(SBaseTable baseTable,                                                    Object value,                                                    boolean selected,                                                    int row,                                                    int col)    {        addr = baseTable.getServerAddress();        addr.add(baseTable.getNamePrefix() + "=" + row + ":" + col);        contents.setText((value == null) ? "&nbsp;" : value.toString());        if (baseTable instanceof STable) {            STable table = (STable)baseTable;            if (selected) {                if (table.getSelectionBackground() == null) {                    setBackground(backgroundSelectionColor);                    contents.setBackground(backgroundSelectionColor);                }                else {                    setBackground(table.getSelectionBackground());                    contents.setBackground(table.getSelectionBackground());                }                if (table.getSelectionForeground() == null) {                    setForeground(foregroundSelectionColor);                    contents.setForeground(foregroundSelectionColor);                }                else {                    setForeground(table.getSelectionForeground());                    contents.setForeground(table.getSelectionForeground());                }                setStyle(cellSelectionStyle);                contents.setStyle(cellSelectionStyle);            }            else {                setBackground(backgroundNonSelectionColor);                setForeground(foregroundNonSelectionColor);                contents.setBackground(backgroundNonSelectionColor);                contents.setForeground(foregroundNonSelectionColor);                setStyle(cellNonSelectionStyle);                contents.setStyle(cellNonSelectionStyle);            }            if (table.isCellEditable(row, col))                return this;        }        // only the Label...        return contents;    }