如何在jsrollpane的jtextpane中回车后,让光标不到下一行(急) 先谢谢各位 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是我,试试下面的代码:final JScrollPane scrollPane = new JScrollPane(); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); getContentPane().add(scrollPane, BorderLayout.CENTER); textArea_1 = new JTextArea(); textArea_1.setLineWrap(true); textArea_1.setAutoscrolls(false); scrollPane.setViewportView(textArea_1); 请教html Parser的两个应用 急!!!java Swing 如何得到JButton的点击次数!!!谢谢了 jtable问题 通过tomcat连接池在java类访问数据库失败! 关于Rectangle和DimenSion两种方法???? Java中何谓创建对象? 新手上路,问个问题 接收附件问题 请问斑竹和各位网友一个有关对象数组类型转换的问题。 请问装了vj++后、、、、、、、 Byte和byte有什么区别 socket通讯问题——有难度的问题(关于端口映射)
final JScrollPane scrollPane = new JScrollPane();
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
getContentPane().add(scrollPane, BorderLayout.CENTER); textArea_1 = new JTextArea();
textArea_1.setLineWrap(true);
textArea_1.setAutoscrolls(false);
scrollPane.setViewportView(textArea_1);