Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

My JScrollPane scrollbar defaults to the bottom not top

843804Dec 13 2004 — edited Dec 13 2004
Hi,

I have a slight problem with a JScrollPane in that it appears to default the scrollbar to the bottom when the scrollbar is visible. I basically have a panel on a JFrame containing a JTextArea within a JScrollPane.

Does anyone know how I can make it default to the top ? I think I found a method that works on JScrollBar but can't seem to find one for JScrollPane.

Thanks,

Andy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2005
Added on Dec 13 2004
2 comments
246 views