Sub getVisibleRange As Int()
Dim jo As JavaObject
jo=ListView1
Dim VirtualFlow As JavaObject
VirtualFlow=jo.RunMethodJO("getSkin",Null).RunMethodJO("getChildren",Null).RunMethodJO("get",Array(0))
Dim lastVisibleCell As JavaObject
lastVisibleCell=VirtualFlow.RunMethodJO("getLastVisibleCell",Null)
Dim firstVisibleCell As JavaObject
firstVisibleCell=VirtualFlow.RunMethodJO("getFirstVisibleCell",Null)
Dim range(2) As Int
range(0)=firstVisibleCell.RunMethod("getIndex",Null)
range(1)=lastVisibleCell.RunMethod("getIndex",Null)
Return range
End Sub