File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Different Different Fonts in JEditorPane" Watch "Different Different Fonts in JEditorPane" New topic

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...

Jennifer Garrett

Joined: Oct 31, 2001
Posts: 13
for the JEditorPane
and add html tags to the text to change the font.
jQuery in Action, 3rd edition
subject: Different Different Fonts in JEditorPane
It's not a secret anymore!