Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use a super script in core java?  RSS feed

 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am try to display "m above ." character (whose unicode value is \u1E41).
I tried using ASCII representation of the same, but didnt work.

I want this character to be displayed in JFreeChart's y-axis label.
Even I used: String m = "m"+".\u00AA";
But this displayed 'm.' to the power of 'a'.

Please suggest a way out.

Regards,
Praveen
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the font you're using include that character?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To follow up myself, I just verified that that character can be used in a title or subtitle using the Unicode literal representation; something like "... \u1e41 ...".

How exactly did you try to set the title?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!