• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing the text font in text area

 
karthik muthuveeramani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is correct.
 
Nelson David
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but how? can u give example.
Nelson
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a Swing question, so I will move the topic over there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic