DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    mbd7031 Guest

    scroll bar dosent move automatically


    hi
    I am raeding a file and addingits content to the JTextArea whic is in JScrollPane.

    The Problem I am facing is i want scroll bar to move automatically with the
    text(i.e. as i am appending the text in the JTextArea the associated scroll
    bar sholud move at the last row position of the text. ) Instead of just
    changn the size of the scroll bar knob.

    How do i solve this problem ?

    Thanks


  2. #2
    Ganesh Guest

    Re: scroll bar dosent move automatically


    What u can do at the most is to use a the Robot class given in JDK 1.3 and
    simulate key movements....

    Regards
    Ganesh R
    ganesh.r@isg-india.com

    "mbd7031" <replymanu@hotmail.com> wrote:
    >
    >hi
    >I am raeding a file and addingits content to the JTextArea whic is in JScrollPane.
    >
    >The Problem I am facing is i want scroll bar to move automatically with

    the
    >text(i.e. as i am appending the text in the JTextArea the associated scroll
    >bar sholud move at the last row position of the text. ) Instead of just
    >changn the size of the scroll bar knob.
    >
    >How do i solve this problem ?
    >
    >Thanks
    >



  3. #3
    Satish Pamidimarthi Guest

    Re: scroll bar dosent move automatically


    hi,
    Use Caret functions of JTextArea to do that...!
    satish.

    "mbd7031" <replymanu@hotmail.com> wrote:
    >
    >hi
    >I am raeding a file and addingits content to the JTextArea whic is in JScrollPane.
    >
    >The Problem I am facing is i want scroll bar to move automatically with

    the
    >text(i.e. as i am appending the text in the JTextArea the associated scroll
    >bar sholud move at the last row position of the text. ) Instead of just
    >changn the size of the scroll bar knob.
    >
    >How do i solve this problem ?
    >
    >Thanks
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links