JTextArea with JScrollbar

I populate a jtextarea with the contents of a text file. The text area has got a scrollbar. As the text has got many lines the area is set to the bottom. How can be set to the top? I mean, after populating the text area

i want to see the first line of my text file not the last one.

Many thanks,

Marla.-

[344 byte] By [marlaHughes] at [2007-9-30 14:58:04]
# 1
textArea.setCaretPosition(0); //scroll to top
MartinHilpert at 2007-7-5 21:10:52 > top of Java-index,Archived Forums,Java Programming...
# 2
Look at the API of the scrollbar, not the text area. I dont have it right in front of me so I dont know the syntax off the top of my head. However there is a way to set the scroll position to 0.
Kraythe at 2007-7-5 21:10:52 > top of Java-index,Archived Forums,Java Programming...
# 3
> > textArea.setCaretPosition(0); //scroll to top> LOL ... that too ... forgot about that.
Kraythe at 2007-7-5 21:10:52 > top of Java-index,Archived Forums,Java Programming...