File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP with ScrollPanes!

 
Dave Donohoe
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,
You could try and set the value for the vertical scrollbar.

Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic