This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am having a problem with a JScrollPane vertical scroll bar. This part of my program reads in questionnaire questions and responses from a file, and then places them on a screen with radio buttons for selection. Everything works fine other than the fact that on questionnaires in which the question and response panel is larger than the screen, the Vertical scroll bar starts scrolled to the bottom of the panel; I need it to start at the top of the page, always. I have tried setting the value of the scroll bar to zero, and setting the caret position of all the JTextAreas to zero, but to no avail. As a matter of fact, I printed out the value of the scroll bar when it was scrolled down, and it said it WAS zero. I really need some help, I cant figure this out.