//update to the new color
compData.setTextColor(form.getObjectRefAsString(), form.getTextColor());
compData.invalidate(form.getTextStreamValue(PdfDictionary.T));
// reset color changed, so we dant do it again unless needed
form.resetColorChanged();
}
// if the form has changed reload the values into the display object
if(form.hasValueChanged()){
//dont set unformatted value here