} catch (Exception e) {}
}
}
private JComponent getEditor(DcField field) {
JComponent c;
if (field.getFieldType() == ComponentFactory._LONGTEXTFIELD ||
field.getFieldType() == ComponentFactory._URLFIELD) {
c = ComponentFactory.getComponent(module.getIndex(), field.getReferenceIdx(),
field.getIndex(), ComponentFactory._SHORTTEXTFIELD, field.getLabel(), field.getMaximumLength());
} else if (field.getFieldType() == ComponentFactory._REFERENCEFIELD) {
c = ComponentFactory.getObjectCombo(field.getReferenceIdx());
} else {
c = ComponentFactory.getComponent(module.getIndex(),
field.getReferenceIdx(), field.getIndex(), field.getFieldType(), field.getLabel(), field.getMaximumLength());
}
c.setAutoscrolls(false);
c.setBorder(null);
c.setIgnoreRepaint(false);
c.setVerifyInputWhenFocusTarget(false);
c.setEnabled(!field.isReadOnly() && !readonly);
return c;
}