JTextPane自动滚动到末尾 javax.swing.text.Document doc = jTextPane.getDocument(); jTextPane.setCaretPosition(doc.getLength()); —————————————————————————————————— 傲轩游戏网