Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do i apply font styles and sizes to a string ?

 
Rasmeet Devji
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people !
I wanted a bit of help from you guys......
I have developed a chat application and am trying to add some features into it.
Right now I'm trying to format the messages with different fonts and styles, which doesn't seem to work fine.
My idea was to set the font style and size of each individual message according to the user preferences.
Any idea how I could do this.......??
Thanks and regards,
Rasmeet
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a basic demo from this site

Here's an advanced font tutorial for real custom stuff.
http://www.javaworld.com/javaworld/javatips/jw-javatip81.html
Hope this helps
Sean
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic