Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Swing / AWT / SWT
HELP with ScrollPanes!
Dave Donohoe
Ranch Hand
Posts: 73
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 1492
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Dave,
You could try and set the value for the vertical scrollbar.
JScrollPane sp = new JScrollPane( editPane ); sp.getVerticalScrollBar().setValue( 0 );
Regards,
Manfred.
Are we home yet? Wait, did we forget the tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Specify exact height of panel or component
JeditorPane
Print Multi page JEditorPane html contents in Java
create a html help menu
Documents Won't Color
More...