我在JScrollPane里加入一个JTextArea.
JScrllPane属性:setAutoscrolls(true);
JTextArea属性:setLineWrap(true);setEditable(false); setAutoscrolls(true);
程序调用append(String)方法,问题是写入内容多了,JScrllPane不会自动滚动.
谢谢
JScrllPane属性:setAutoscrolls(true);
JTextArea属性:setLineWrap(true);setEditable(false); setAutoscrolls(true);
程序调用append(String)方法,问题是写入内容多了,JScrllPane不会自动滚动.
谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货