Table.setSelection

Selects the item at the given zero-relative index in the receiver. The current selection is first cleared, then the new item is selected.

@param index the index of the item to select

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@see Table#deselectAll() @see Table#selectcast(int)

Meta