JLabel longLabel = new JLabel();
longLabel.setText("<html><body>This is a <p><b>" +
"<font size=\"+2\">a label on</font>" +
"</b><p>three lines.</body></html>");
Written and compiled by Réal Gagnon ©1998-2012
[ home ]