Originally posted by raghav mathur:
displaymessage.scrollRectToVisible(Rectangle rect);
From where the does the rectangle class come into picture ?
That would be the last rect (bottommost) that you'd want to make visible. Try this code
This will scroll your JTextArea a little, you'll have to find the height of your font and total number of lines in the JTextArea to get co-ordinates of the rect right. Trust me, this will work!

Maybe, you'd want to use it with SwingUtilities.invokeLater().
Hmmm, let me have a look at the other link...
HTH,
- Manish