0
我目前使用這個類把文字變成「登錄」 JTextArea
:Propper JTextArea的文本Wrappping
public void appendOutput(String output) {
textPane.setText(textPane.getText() + "\n " + output);
}
這工作得很好,除了一個事實,即包裝JTextArea
文本將剪下來的字了一半。有沒有一個好的/簡單的解決方案?
這裏的[API的](http://docs.oracle.com/javase/7/docs/api/ index.html) –
我沒有意識到這種方法存在;謝謝! – TheNickmaster21
不止歡迎:-) – bknopper