Author
changing the text font in text area
karthik muthuveeramani
Greenhorn
Joined: Apr 12, 2001
Posts: 5
posted Apr 12, 2001 05:11:00
0
We are developing a chat program. I want to know how to have a particular text(or a particular line) bold, while the other lines remain plain. (as in a typical chat interface). karthik.
Manfred Leonhardt
Ranch Hand
Joined: Jan 09, 2001
Posts: 1492
posted Apr 12, 2001 07:32:00
0
Hi Karthik, I think the only way to do that is to use the JTextPane that comes with Swing. AWT won't do at all... Good Luck, Manfred.
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted Apr 12, 2001 08:24:00
0
That is correct.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Nelson David
Greenhorn
Joined: Oct 01, 2002
Posts: 13
but how? can u give example. Nelson
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
This is a Swing question, so I will move the topic over there.
"JavaRanch, where the deer and the Certified play" - David O'Meara
subject: changing the text font in text area