[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Table Get Selected Cell
|
Please note that a row can be selected using the keyboard and in this case
you do not have the x and y coordinates to determine a cell. That is why
the selection event does not have x and y coordinates. In the native table,
you are not selecting an individual cell but rather a row.
If you want to select a cell, take a look at TableCursor:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet96.java?rev=HEAD&content-type=text/vnd.viewcvs-markup
"zinc" <zincsterio@xxxxxxxxx> wrote in message
news:cde22fa6412886c259e9b3b81e99ae2e$1@xxxxxxxxxxxxxxxxxx
> Nevermind, I found the solution. You could get the x, y coordinate from
> the event, and then check to see whether it is in the bounds of the
> column.
>