Apply different styles to strings in a single TextArea in JavafX

后端 未结 1 433
花落未央
花落未央 2020-12-21 02:02

Is there a way to style a substring of the text in a TextArea? setStyle() method is only available to the TextArea class.

相关标签:
1条回答
  • 2020-12-21 02:34

    If you are using JDK 8, then this can be achieved by using RichTextFX. It allows you to add style classes to text ranges.

    0 讨论(0)
提交回复
热议问题