scroll bar dosent move automatically


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: scroll bar dosent move automatically

  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
    >



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center