在一个JEditorPane中加入一个html标记textarea,怎样才能让textarea中输入的文本自动换行?比如:JEditorPane ep = new JEditorPane();
StringBuffer sb = new StringBuffer();
sb.append("<html><body>");
sb.append("<textarea cols=30></textarea>");
sb.append(</body></html>
ep.setText(sb.toString);在textarea中输入文本,当超过指定的长度时让其自动换行,怎样才能做到呢?
StringBuffer sb = new StringBuffer();
sb.append("<html><body>");
sb.append("<textarea cols=30></textarea>");
sb.append(</body></html>
ep.setText(sb.toString);在textarea中输入文本,当超过指定的长度时让其自动换行,怎样才能做到呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货