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
2010-08-20 13:34:13
Yup. I found the solution myself digging last night in swt docs before reading your answer. BTW, thank's alot.
kinclong2
2010-08-21 00:08:01
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
2010-08-29 11:59:05