Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic