I have a JTextArea which is receiving text from files and then being displayed on a dialog box. Because the text is long, I have added a JScrollPane. So far so good. However, the vertical scroll bar is always at the bottom of the text not at the top, which is where you would expect it. So...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.