How to change value of Scrollbar without triggering event

Hi All,

I have a scrollbar in my swing application for which an adjustment listener is added so that when the scrollbar is clicked or dragged, an event will be triggered and some action will be perofrmed accordingly. But sometimes I want to adjust the value, visible amount and other properties of scrollbar programatically using setValue(), setValues(), methods. But adjustment event got triggered when I use those methods which is not desired for my application. Is there any way to change the values of scrollbar programatically without triggering adjustment events?

[582 byte] By [Karthikeyana] at [2007-10-3 8:37:30]
# 1
a) remove the listenerb) change the valuec) add the listener
camickra at 2007-7-15 3:45:20 > top of Java-index,Desktop,Core GUI APIs...