I have a text area with scroll bar. At regular intervals, I am adding new lines of text to it. I would like the text area to automatically scroll to the bottom-most entry (t
textArea.setCaretPosition(textArea.getDocument().getLength());