aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Different Different Fonts in JEditorPane