//component.resetChange();
component.setSelectedTextColor(Color.WHITE);
component.setSelectionColor(Color.BLACK);
if (table.getModel() instanceof SpreadSheetModel) {
SpreadSheetModel model = (SpreadSheetModel) table.getModel();
Field field = model.getFieldInColumn(column+1);
int width = field.getTextWidth(null,null);
if (width != Integer.MAX_VALUE) {
((AbstractDocument)component.getDocument()).setDocumentFilter(new FixedSizeFilter(width));
}
component.setHorizontalAlignment(field.getHorizontalAlignment());
if (field.isWork()) {
Object rowObject = model.getObjectInRow(row);
if (rowObject instanceof CanSupplyRateUnit && ((CanSupplyRateUnit)rowObject).isMaterial())
useFormat = DurationFormat.getNonTemporalWorkInstance();
}
} else {
if (value == null || value instanceof String )