How to create underlined label

Suppose, we need underlined label in our swing application. java.awt.Font doesn’t have this option.
But next code solves the problem:

JLabel clickItLabel = new JLabel("<html><u>Click It</u></html>")
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • RSS
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • BlinkList
  • blogmarks
  • DZone
  • E-mail this story to a friend!
  • LinkaGoGo
  • Live
  • MisterWong
  • MisterWong.DE
  • Reddit
  • StumbleUpon
  • Technorati
  • ThisNext
  • Tumblr

Related posts:

  1. How to make multilined label
  2. How to create hyperlink in desktop application
  3. How to start desktop application with Netbeans

Leave a Reply


wp