problem with scrollbar position

i have a unique problem with scrollbar. Actually i am searching for some values and since the list is huge i am displaying using a scrollbar, here i am dragging the scroll bar down and with out dragging the scrollbar again back to top i am clicking on the search again. The problem is the scroll bar is positioned at the bottom itself. I want the scrollbar to be coming back to the normal position i.e. top position.

please let me know how to solve this. I am using JScrollPane.

[491 byte] By [phani_virinchia] at [2007-10-3 4:35:46]
# 1
Get the vertical scrollbar from the scrollpane and set its value to 0.Or, on the component added to the scrollpane use the scrollRectToVisible(...) method.
camickra at 2007-7-14 22:39:24 > top of Java-index,Desktop,Core GUI APIs...
# 2
hi, it has worked thanks you..........
phani_virinchia at 2007-7-14 22:39:24 > top of Java-index,Desktop,Core GUI APIs...