underlined font
1 posts in topic
Flat View  Flat View

Posted By:   sss_ssss
Posted On:   Monday, May 24, 2004 02:51 AM

How to have an underlined font in a jlabel or a jbutto

Re: underlined font

Posted By:   David_Thornton  
Posted On:   Monday, May 24, 2004 05:20 PM

Swing implements HTML rendering for its components. JLabel and JButton are Swing components not AWT components so you can use HTML tags to underline the text.

For example;

String myLabelText = "underline is possible";
JLabel myLabel = new JLabel(myLabelText);
About | Sitemap | Contact