scroll to bottom

Discussion in 'Java' started by cmk128@hotmail.com, Jul 27, 2005.

  1. Guest

    Hi
    I have a jscrollpandl containing a jtextarea
    this can make jtextarea scroll to bottom

    Rectangle visible = jTextArea1.getVisibleRect();
    visible.y = jTextArea1.getHeight() - visible.height;
    jTextArea1.scrollRectToVisible(visible);


    but doesn't work for JEditorPane.
    thanks
    from Peter ()
     
    , Jul 27, 2005
    #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.

Share This Page