Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different Different Fonts in JEditorPane

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writting a chat application in which I need to display different colors and different fonts for different messages.
If I change the color...all the text is getting changed with that color..

Any suggestions would be appriciated...

thanks
Pratik
 
Jennifer Garrett
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
call
setContentType("text/html")
for the JEditorPane
and add html tags to the text to change the font.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic