I am creating blue/underline text to mark links in my custom text component
that is essence a wrapper around JTextPane. Basically, I just call
styledDocument.setCharacterAttributes to make the text look different from
the simple text. Here is the problem:

When the user starts typing something right after that text, it also becomes
blue/underlined. I.e., has the same style as the text before the 1st
character. How can get around this problem?

Many thanks.

Lenny, New York.


_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to