pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger L. Whitcomb" <Roger.Whitc...@actian.com>
Subject RE: how to move scrollpane in vertical direction
Date Mon, 07 Jan 2013 16:57:01 GMT
Hi,

                There are two normal ways to do this:

Viewport.setScrollTop(x)

and

Component.scrollAreaToVisible(...)

                So, if you have a reference to the ScrollPane (subclass
of Viewport) you could scroll it a little bit by doing this:

scrollPane.setScrollTop(scrollpane.getScrollTop() + 10);

                Alternatively, if you have an area of a component
embedded inside the ScrollPane that you want to be visible, you can use
the "scrollAreaToVisible()" method.

                From what you are describing, though, it sounds like the
first method is what you need.

 

HTH,

~Roger Whitcomb

 

From: V SANTOSH PAVAN RAJU Bs [mailto:pavanraju.mca@gmail.com] 
Sent: Monday, January 07, 2013 3:28 AM
To: user@pivot.apache.org
Subject: how to move scrollpane in vertical direction

 

Hi,

In my application i have to move ScrollPane in vertical direction using
some buttonpress listeners. Is there any method that can be used to move
scrollpane in vertical direction?


 

-- 
Thanks & Regards

B.S.V.S.Pavan Raju.

Skype: skype_pavan1

Hyderabad.


Mime
View raw message