tc.setIdentifier(field); // store the field with the column
// System.out.println("setting column " + columnIndex + " to field " + field + " ok = " + (field == getFieldInColumn(columnIndex)));
if (field.isNameField()) {
tc.setPreferredWidth((svg)?170:150);
tc.setCellRenderer(new SpreadSheetNameCellRenderer());
// tc.setCellEditor(new SpreadSheetNameCellEditor(new SimpleEditor(String.class)));
tc.setCellEditor(new SpreadSheetCellEditorAdapter(new SimpleEditor(String.class)));
} else if (field == Configuration.getFieldFromId("Field.indicators")) {
tc.setPreferredWidth(50);
tc.setCellRenderer(new SpreadSheetCellRendererAdapter(new IndicatorsRenderer()));