我试图设置下面给出的文本,但由于某种原因,JEditorPane无法识别\n并在一行中打印所有内容。
this.jEditorPane2.setText("Hello how is the weather in \n California");有没有办法获得一个新的行距?
发布于 2010-09-12 11:56:54
JEditorPane应该支持超文本标记语言,请尝试使用<br>而不是\n。
https://stackoverflow.com/questions/3693669
复制相似问题