Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different Font Size in JEditorPane

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am writing a chat application.
I want to display different text color for different user.
and I am using the JEditorPane for "Text/RTF".
So How should I do this ??
thanks in advance
Pratik
 
vicky bawge
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pratik,
i am using JEditorPane to render html. And i usuyally use the tag in my html and JEditorPane takes care of displaying the colors i wish. there should be some tag in the rtf that indicates color.
good luck!
-Vivek
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic