Drag Scroll Bar event
Hi All,
is there any special event handle the drag scrollbar.
im using today the followng event:
jResultScrollPane.getHorizontalScrollBar().addAdjustmentListener(new AdjustmentListener(){
publicvoid adjustmentValueChanged(AdjustmentEvent e){
System.out.println("scrollmoving");
}
});
but its working also when i resize.
i want just when i drag the scroll.
TIA
[655 byte] By [
Gabia] at [2007-11-27 10:12:29]

# 1
i found a solution:
make a mouse drag event for your scrollbar:
jResultScrollPane.getHorizontalScrollBar().addMouseMotionListener(new MouseMotionAdapter()
{
public void mouseDragged(java.awt.event.MouseEvent e)
{
System.out.println("mouseDragged()"); // TODO Auto-generated Event stub mouseDragged()
//AdjustListsSize(e);
}
});
Gabia at 2007-7-28 15:20:35 >
