Share this page 

Set the cursor position in a JTextAreaTag(s): Swing


To the top
myJTextArea.setCaretPosition(0);
To the end
myJTextArea.setCaretPosition(myJTextArea.getDocument().getLength());

mail_outline
Send comment, question or suggestion to howto@rgagnon.com