This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HELP with ScrollPanes!" Watch "HELP with ScrollPanes!" New topic
Author

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?
Thanks,
D
Manfred Leonhardt
Ranch Hand

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

Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HELP with ScrollPanes!
 
It's not a secret anymore!