A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Swing / AWT / SWT
HELP with ScrollPanes!
Joined: May 16, 2000
Jun 27, 2001 08:27:00
I have a
in a viewport using
When I add text to the
, the knob on the scrollpane is at the bottom of the scrollbar ie the bottom of the
. How can I set it to be at the top?
Joined: Jan 09, 2001
Jun 27, 2001 13:48:00
You could try and set the value for the vertical scrollbar.
JScrollPane sp = new JScrollPane( editPane ); sp.getVerticalScrollBar().setValue( 0 );
I agree. Here's the link:
subject: HELP with ScrollPanes!
Specify exact height of panel or component
Print Multi page JEditorPane html contents in Java
create a html help menu
Documents Won't Color
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015