superscript in Java String

后端 未结 7 1719
一向
一向 2020-12-09 18:45

Does Java String supports superscript in a String? If yes then how can I use it, I have searched the web and also the API but not able to figure out how I can use it for my

7条回答
  •  庸人自扰
    2020-12-09 19:39

    You can use html tags in java (User Interface only): Suppose you want to display 210, write this code in your JLabel :

    JLabel lab = JLabel("210");
    

提交回复
热议问题