tags:

views:

28

answers:

1

How to do vertical scroll of SWT table programatically? I'm implementing search function on the table. When an item was found then it will be scrolled to the item found.

+1  A: 

There are several methods you might want to try:

Table.showItem(TableItem)
Table.showSelection()
Table.showColumn(TableColumn)
Table.setTopIndex(int)

Other than that, I suggest using a TableViewer from JFace. Then you'd scroll to an item with this method:

TableViewer.reveal(Object)
python dude
Yup. I found the solution myself digging last night in swt docs before reading your answer. BTW, thank's alot.
kinclong2
If this is the correct solution, please mark it as accepted so that other developers facing the same difficulty can see it as such.
Paul Lammertsma