File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Different Different Fonts in JEditorPane
Pratik Khetia
Ranch Hand
Joined: Jun 29, 2001
Posts: 50
posted
Nov 28, 2001 16:35:00
0
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
posted
Nov 29, 2001 14:33:00
0
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
Similar Threads
TextPane Problem....
http error?
am I allow to use java.awt.Color?
fonts in xslt are not coming through in JSTL
Wrapper constant pools String constant pools
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter