This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Different Font Size in JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Different Font Size in JEditorPane" Watch "Different Font Size in JEditorPane" New topic

Different Font Size in JEditorPane

Pratik Khetia
Ranch Hand

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

Joined: Sep 04, 2001
Posts: 34
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!
I agree. Here's the link:
subject: Different Font Size in JEditorPane
Similar Threads
Selection color and selected text color - Urgent
JEditorPane problems
printing rtf from jEditorPane
JEditorPane and css - will a custom EditorKit make it work?
Disable selection from the JEditorPane