Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Beginner
Oct 26, 2001

Creating Multi-Line Labels in AWT/Swing

 
String htmlLabel = "<html><sup>HTML</sup>
<sub><em>Label</em></sub><br>" +
      "<font color=\"#FF0080\"><u>Multi-line</u></font>" + "<br><font
color=\"#FF0500\"><u>Extra-line</u></font>";
JLabel label = new JLabel(htmlLabel);
Van C.
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date