Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JLabel with html tag can not be disabled or setForegroud?!

843805May 10 2006 — edited Aug 12 2006
I have some JLabel(s) with html tags, eg:
JLable lbl1 = new JLabel();
lbl1.setText("<html>My<br>Label</html>");

When I tried to disable the JLabel OR setForeGround to the JLabel, it doesn't work! (The label is not dimmed)

Can anyone tell me how to disable the JLabel which has text with html tags? Thanks!

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 9 2006
Added on May 10 2006
5 comments
1,151 views