• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing the font of few words in a line in awt  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!