I don't think this is possible. The edited text is kept in the appearance, hence there can be only one (just like the Highlander :-)).
Best Regards, Paulo Soares ----- Original Message ----- From: "David Teran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 18:02 Subject: [iText-questions] form textfield question > Hi, > > is it possible to define two different PdfAppearance objects and assign > them to a textfield (PdfFormField)? I would like to have a textfield > that get "highlighted" when the user enters the field. > > I tried a lot of combinations of: > > myFormTextField.setWidget(new Rectangle(lx, ly, ux, uy), > PdfAnnotation.HIGHLIGHT_...); > in conjunction with > setAppearance(PdfAnnotation.APPEARANCE_NORMAL, aAppearanceInstance); > setAppearance(PdfAnnotation.APPEARANCE_ROLLOVER, > anotherAppearanceInstance); > > setAppearance(PdfAnnotation.OTHER_STATICS... , > anotherAppearanceInstance); > > > Kind regards, david > > > > > > > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions