Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

html bold in jLabel in linux

807589Sep 9 2008 — edited Sep 9 2008
Hi,

I'm trying to put Html in a Label. However the bold isn't working under linux. In windows it works. But in linux it doesn't. I tried playing around with it. But nothing worked for me.
zText1 = "test";
zText2 = "test";
zLabel.setText("<html><font size=\"4\" face =\"Courier\"><b>" + zText1 + "</b>  " + zText2 + "</font></html>"); 
Thanks,
Shaul
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2008
Added on Sep 9 2008
8 comments
229 views