### Scroll to Item selected

There are various options to scroll to an item in a listview.
Option 1
As from B4J 2.0 there is a ListView method ScrollTo:
listView1.ScrollTo(listView1.SelectedIndex)
Option 2
Another way of scrolling to, is to use a JavaObject Method.
Use the JavaObject RunMethod scrollTo to scroll to a given Index in a ListView.
Reference: http://docs.oracle.com/javafx/2/api/javafx/scene/control/ListView.html
' Scroll to the given index in the listview
' Parameter Listview
' Parameter Index within the range of number of items, starting with 0
`Public Sub listviewScrollTo(lv As ListView, Index As Int)
If Index = -1 Then Return
If Index > lv.Items.Size Then Return
Dim JO As JavaObject = lv
JO.RunMethod("scrollTo",Array As Object(Index))
End Sub`

Changed: , Category: ListView, File: T6C216M1590.htm, ID: 1590