> HI Oliver,
>
> thanks for the reply. But it's not rows that i need to select. i need
> to select individual cells
> Can this solution be used there also
Yes, the same "checkbox" solution could be used by writing a custom cell
renderer which adds a checkbox to every cell, but it's probably too much
trouble.
What you could do is add a boolean field for every column in your table
model which indicates whether a given column in a particular row was
selected, and then add mouse listeners to detect clicks, toggling this
boolean field.
But maybe it's better to take a step back and think about why you need
to select individual cells, and why CTRL is not a viable option.
- Oliver
Chanchal - 19 Apr 2006 05:40 GMT
Hello Oliver,
thanks again for the replay. The reason why ctrl is not a viable option
is that i'm developing a touch screen application. Hence i don't have a
keyboard
Chanchal
Oliver Wong - 19 Apr 2006 14:30 GMT
> The reason why ctrl is not a viable option
> is that i'm developing a touch screen application. Hence i don't have a
> keyboard
Okay, I'd probably go with the mouse listener setting flags on the model
then.
- Oliver
Chanchal - 20 Apr 2006 05:58 GMT
could you provide me with some sample code. That will be really
helpful.
Thanks in advance
Chanchal
Chanchal - 19 Apr 2006 05:41 GMT
Hello Oliver,
thanks again for the replay. The reason why ctrl is not a viable option
is that i'm developing a touch screen application. Hence i don't have a
keyboard
Chanchal