• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing the font of few words in a line in awt

 
Chandhrasekar Saravanan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I like to change the font of only few words
in line not the entire line. i dont know how to
do that in awt. for eg. if we get <b> </b>tag in
the line i should be able to display only those
particular words as bold and others as plain.
i am attaching the code i have worked on,the
problem here is the line is written in the last
setFont and not for the previous ones.
Thanks
Regards
Chandhrasekar Saravanan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!