File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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!
Documents Won't Color
Specify exact height of panel or component
create a html help menu
Print Multi page JEditorPane html contents in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014