aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes formatting text in a JLabel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "formatting text in a JLabel" Watch "formatting text in a JLabel" New topic
Author

formatting text in a JLabel

Kate Zoy
Ranch Hand

Joined: Feb 11, 2004
Posts: 33
I want to have the text inside of a JLabel underlined. This must certainly be possible, but I can't seem to find information about anywhere.
Is there anyway I can underline the text within the JLabel declaration and initialization, or should I format the string beforehand and then had the underlined string in the JLabel?
Let me know! Thanks alot!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Try this
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: formatting text in a JLabel