How do I present text vertically in a JLabel ? (Java 1.6)

后端 未结 5 1094
梦谈多话
梦谈多话 2020-12-10 13:09

I\'m looking to have text display vertically, first letter at the bottom, last letter at the top, within a JLabel. Is this possible?

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 13:17

    Another way to show text in a JLabel vertically is to use HTML tags in the text of the JLabel. For example setText("H
    E
    L
    L
    O");
    will set the text to
    H
    E
    L
    L
    O

提交回复
热议问题