• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hello with underline

 
kedar parundekar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to print Hello with underline on the frame. How its possible?
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't a way of setting an underline attribute to a Font.
There are some Swing components (I can't remember which but JLabel might be one), which accept html.

TryThis should work; there might be other Jcomponents which accept html similarly.

CR
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!