How to set value of JScrollPane to 0?

I want to set value of JScrollPane to 0 so that it be on top after some code, and I have tried JScrollPane.getVerticalScrollBar().setValue(0) but it doesn't work.Help?
[182 byte] By [BobMila] at [2007-11-27 8:10:43]
# 1
It's ok, I got it.
BobMila at 2007-7-12 19:54:24 > top of Java-index,Java Essentials,Java Programming...
# 2
Still posting in the wrong forum I see: http://forum.java.sun.com/thread.jspa?threadID=5127387&messageID=9453649#9453649
camickra at 2007-7-12 19:54:24 > top of Java-index,Java Essentials,Java Programming...