from java api docTextArea(String text, int rows, int columns, int scrollbars) Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.static int SCROLLBARS_VERTICAL_ONLY Create and display vertical scrollbar only
wrap="soft"
textArea.setLineWrap(true);//设置自动换行这个是在 JTextArea 里面才有的啊, 请看清楚我的问题好吗!!??
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.static int SCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only
我也是刚刚查到, 多谢了!这才是我要的,加分!!! 希望其他的人以后搞清楚问题再说话,不过还是要谢谢你们!!!