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
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.

Consider Paul's rocket mass heater.
subject: HELP with ScrollPanes!