This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Different Different Fonts in JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Different Different Fonts in JEditorPane" Watch "Different Different Fonts in JEditorPane" New topic
Author

Different Different Fonts in JEditorPane

Pratik Khetia
Ranch Hand

Joined: Jun 29, 2001
Posts: 50
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

Joined: Oct 31, 2001
Posts: 13
call
setContentType("text/html")
for the JEditorPane
and add html tags to the text to change the font.
 
Have you checked out Aspose?
 
subject: Different Different Fonts in JEditorPane
 
It's not a secret anymore!