Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Movin ScrollBars from Code


  • From: balaji@xxxxxxxxxxx (Balaji Srinivasan)
  • Subject: Movin ScrollBars from Code
  • Date: Tue, 31 Aug 1999 13:11:01 +0530

I have a textarea in which I keep on adding data.
Currently I'm saying something like: 
txtDisp.setText( txtDisp.getText() + "New Text");
Now the new data added is at the bottom but the focus is at the top..
How can I bring the scrollbar down?


----- Original Message ----- 
From: G Ramasubramani <grsmani@xxxxxxxxxxxxxxxx>
To: <advanced-java@xxxxxxxxxxxxxxxx>
Sent: Tuesday, August 31, 1999 12:22 PM
Subject: Movin ScrollBars from Code





Hi folks,
    Is it possible to move a vertical scrollbar up

or down by writing code to do it?
    Essentially, I have a JScrollPane and want to
move the scrollbar from within the code
    whenever  particular event is generated.

Thanks and regards,
Rama