aspose file tools*
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 Spring in Action this week in the Spring 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.
 
 
subject: HELP with ScrollPanes!