I have embedded a JTextArea on a JScrollPane and am using that JTextArea for output.
I want that whenever the ouput goes beyond the size of the JTextArea, the JTextArea scrolls automatically so that user don't have to do manual scroll down to see the recent output.
How can I do that?
I have already set the autoscroll property of both JTextArea and JScrollPane to true.