Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
Different Different Fonts in JEditorPane
Pratik Khetia
Ranch Hand
Posts: 50
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 13
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
call
setContentType("text/html")
for the JEditorPane
and add html tags to the text to change the font.
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
http error?
TextPane Problem....
am I allow to use java.awt.Color?
Wrapper constant pools String constant pools
fonts in xslt are not coming through in JSTL
More...