You can't change the bgcolor on the checkboxes because the checkboxes
are not recreated as in the case of text fields.  

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Chandrasekharan, Satish
> Sent: Thursday, February 16, 2006 3:28 PM
> To: [email protected]
> Subject: [iText-questions] Problems with changing bgcolor on 
> checkboxes
> 
> Hello,
> I'm using the classes PdfStamper and AcroFields to highlight 
> unchecked checkboxes and text fields that do not have text in 
> them. The setFieldProperty(fieldname,bgcolor, new 
> Color(0xFF,0xFF,0x00),null) manages to change the background 
> color on all the text fields, but fails to do so for the 
> checkboxes. I do a getAppearanceStates() on the field name to 
> get the checkbox items, but i cannot seem to call 
> setFieldProperty on the checkbox items.Any ideas on how to 
> change the bgcolor on the checkboxes?
> Thanks,
> Satish


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to