在jtextarea中以换行符和间距显示文本
|
我已经用setText函数设置了
JTextArea
的文本
abc=\"PREFIX table: <http://www.daml.org/2003/01/periodictable/PeriodicTable#> \" +
\"SELECT ?name \" +
\"FROM <http://www.daml.org/2003/01/periodictable/PeriodicTable.owl>\" +
\"WHERE {\" +
\" ?element table:name ?name. \" +
\" FILTER(str(?name)=\\\"sodium\\\") \" +
\" }\"
texta.setText(abc);//abc is very long string
如何在JTextArea
中显示带有换行符和间距的字符串。
没有找到相关结果
已邀请:
2 个回复
耐钨徒
那应该工作。
骨乏唯瓜
字符。