java 到最右边的时候自动换行如实例: textArea.setLineWrap(true); 转载于:https://www.cnblogs.com/8335IT/p/3634517.html