I am developing a chatting tool
and in the chatting window i am using JTextPane.
when a user sends the formatted message it should be displayed in the show
Message window that is also a JTextPane.
now my problem is that i can retrieve the document from one JTextPane
but can't append that document in other textPane.
I don't want to loose the old text in the JTextPane
and want to append the new one having different fonts, colors, and font sizes
etc..
Remember i want to append not change the document.
I tried it by attributeset, style etc. but could not succeeded.