Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JTextPane Problem

  Asked By: Demyan    Date: Oct 13    Category: Java    Views: 447
  

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.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on JTextPane Problem Or get search suggestion and latest updates.




Tagged: