I am sorry, I have actually managed to answer my own question.
I created external variable called scrolledAmount, and then I have added listener to the scrollPane
scrollPane_.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener()
{
@Override
public void adjustmentValueChanged(AdjustmentEvent e)
{
scrolledAmount_ = e.getValue();
System.out.println("Type is "+e.getAdjustmentType());
System.out.println("Amount scrolled is "+e.getValue());
System.out.println("Scrolled amount is "+scrolledAmount_);
}
});
By doing this I know the exact amount of pixels that has been scrolled.