GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes How do i apply font styles and sizes to a string ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do i apply font styles and sizes to a string ?" Watch "How do i apply font styles and sizes to a string ?" New topic
Author

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

Rasmeet Devji
Greenhorn

Joined: Dec 08, 2000
Posts: 17
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

Joined: Nov 07, 2000
Posts: 621
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
 
GeeCON Prague 2014
 
subject: How do i apply font styles and sizes to a string ?