Below is how I created a JScrollPane.
...
JTextArea reasonText = new JTextArea();
reasonText.setText(....)
JSrollPane reasonScroller = new JScrollPane(reasonText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
...
After I run the program, the position of the vertical scroller is always at the end of the textarea. But I want it to be at the begining of the textarea. Does anyone know how to do it?
Any insights would be appreciated.