0

I need to show the function eAxn inside a JLabel, but trying to do so doesn't work and only shows as eAxn which is confusing. eAx^n could help, but that's not what I'm looking for.
Probably is because of the html version, or JLabels just dislike nested superscripts.
How else would you approach this for a JLabel?

4

1 回答 1

1

对于该特定情况,存在 special-2 \u00b2

<html>e<sup>0.5x²</sup>

HTML 编辑器工具包和样式文本使用字符属性,这可能会阻止<sup>标签的嵌套。也许<span style='...'>也可以做一些事情。

于 2013-05-25T21:31:50.460 回答