JScrollPane scroll to top

Discussion in 'Java' started by Richard Trahan, Jul 26, 2003.

  1. I have a JEditorPane set inside a JScrollPane. After I do a setPage,
    I want the display to scroll to the top. How do I do that? I've tried
    JViewPort.setViewPosition and scrollRectToVisible, but they don't work.
    Richard Trahan, Jul 26, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nicholas
    Replies:
    0
    Views:
    438
    nicholas
    Dec 7, 2004
  2. Kevin
    Replies:
    1
    Views:
    9,516
    Roland
    Feb 5, 2005
  3. Sathiamoorthy

    Enable Scroll up and scroll down in CR-report

    Sathiamoorthy, Nov 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    891
    zobalee
    Nov 28, 2006
  4. UJ
    Replies:
    1
    Views:
    566
    John Timney \(MVP\)
    Nov 1, 2006
  5. Ken
    Replies:
    3
    Views:
    2,491
Loading...

Share This Page