• 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
Sheriff
Pie
Posts: 49472
64
  • 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