set new text style in JtextPane

Hi,To set text style in a JTextPane i can use for example setCharacterAttributes, but this method is to set a style for an existing text.How to set style for a text that will be typed in a future by user and won't change already inputed text style in a line ?Regards.
[296 byte] By [lukapla] at [2007-10-2 11:23:17]
# 1
plz. help me i gave no idea how to set new style for cursor and don't destroy styles before
lukapla at 2007-7-13 4:26:13 > top of Java-index,Desktop,Core GUI APIs...
# 2
check [url= http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html]this[/url] out
Aldaris84a at 2007-7-13 4:26:13 > top of Java-index,Desktop,Core GUI APIs...