How to select only one cell in a Table [message #463348] |
Fri, 04 November 2005 05:02 |
Eclipse User |
|
|
|
Originally posted by: siegfried.heintze.com
I'm using a table and when I click on it with the mouse, the whole row is
hi-lighted. How do I change this behavior?
Also, I added a selection listener and, not surprisingly,
table.getSelection()[0].getText() gives me the first element in the row and
I want the second element in the row. How do I get the second element of the
row? I tried, table.getSelection()[1].getText() but this just caused it to
crashed.
Thanks,
Siegfried
|
|
|
Re: How to select only one cell in a Table [message #463428 is a reply to message #463348] |
Sun, 06 November 2005 01:03 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
I am not much in SWT table but I think there was something like
setRowSelection or it is the SWT.FULL_SELECTION style that determines
whether the full row or a single cell is selected.
Siegfried Heintze wrote:
> I'm using a table and when I click on it with the mouse, the whole row is
> hi-lighted. How do I change this behavior?
>
> Also, I added a selection listener and, not surprisingly,
> table.getSelection()[0].getText() gives me the first element in the row and
> I want the second element in the row. How do I get the second element of the
> row? I tried, table.getSelection()[1].getText() but this just caused it to
> crashed.
>
> Thanks,
> Siegfried
>
>
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
|
|
|
|
Powered by
FUDForum. Page generated in 0.03140 seconds