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!

How to place a degree symbol in a JLabel

843805Sep 22 2005 — edited Sep 22 2005
I'm trying to place a degree symbol in a JLabel with the following code
JLabel label = new JLabel ("<html>&#186</html>");
but all I'm getting is the literal, not the degree symbol.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2005
Added on Sep 22 2005
10 comments
400 views