Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Movin ScrollBars from Code
- From: cvandeso@xxxxxxxx (cvandeso@xxxxxxxx)
- Subject: Movin ScrollBars from Code
- Date: Mon, 30 Aug 1999 14:24:43 +0200
Hi Rama,
You have the next method on JComponent level :
----
public void scrollRectToVisible(Rectangle aRect)
Forwards the scrollRectToVisible() message to the JComponent's parent.
Components that can service the request, such
as a JViewport, override this method and perform the scrolling.
See Also:
JViewport
----
If you use this on the viewport, the scrollbar automatically moves along
with it. (have a look at the source of JList, JTree plafs for a good prog.
template)
Regards,
Carlo
G Ramasubramani <grsmani@xxxxxxxxxxxxxxxx> on 30/08/99 14:18:00
To: advanced-java@xxxxxxxxxxxxxxxx
cc: (bcc: Carlo Van de Sompel/ISD/Anhyp/BE)
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
- Prev by Date: Movin ScrollBars from Code
- Next by Date: Horizontal Scrollbar in JTables
- Previous by thread: Movin ScrollBars from Code
- Next by thread: Movin ScrollBars from Code
- Index(es):