JTextPane自动滚动到末尾

  1. javax.swing.text.Document doc = jTextPane.getDocument();  
  2. jTextPane.setCaretPosition(doc.getLength());
原文地址:https://www.cnblogs.com/cuizhf/p/2183753.html