JTextArea: how to wrap text by words, not characters?

前端 未结 3 1455
时光取名叫无心
时光取名叫无心 2021-01-07 16:44

I want to avoid an output like this:

Here is some text t
hat is being wrappe
d by characters, sp
litting words in ha
lf

I am using a JTextA

3条回答
提交回复
热议问题