javax.swing.text.Document doc = jTextPane.getDocument(); jTextPane.setCaretPosition(doc.getLength());