1 February 2012

How to set position of the text insertion on beginning of text instead of end of the text in JTextArea ?

(It is just note to myself)

To set position of the text insertion on beginning of text instead of end of the text. Do this:
 myTextArea.setCaretPosition(0);