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.
Joined: Jun 13, 2009
Your code isn't executable to I can't see the problem.
1) never use updadeUI
2) make sure you create the GUI on the EDT.
Joined: Aug 03, 2009
It isn't executable due to the fact that I would have to upload a ton of resources for it to be. And what do you mean by EDT?