This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes HELP with ScrollPanes! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HELP with ScrollPanes!" Watch "HELP with ScrollPanes!" New topic

HELP with ScrollPanes!

Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Hi there,
I have a JEditorPane in a viewport using JScrollPane.
When I add text to the JEditorPane, the knob on the scrollpane is at the bottom of the scrollbar ie the bottom of the JEditorPane. How can I set it to be at the top?
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Dave,
You could try and set the value for the vertical scrollbar.

I agree. Here's the link:
subject: HELP with ScrollPanes!
It's not a secret anymore!