Hi!
> Haven't read it completely, but I think you need a cell editor along with
> the cell renderer.
If I understand the problem correctly, the problem is for the JTable to
forward _all_ mouse events to the cell. To invoke an editor, you still
need to doubleclick on a cell, which is hardcoded as far as I know..
I'm afraid you'd need to create an extension of JTable in order to
override this behaviour. If a better solution should arise, please share
it with me/us, cuz I could use it somewhere too :p
Greetings,
Pieter Bonne.
Rajarshi Guha - 26 May 2004 13:31 GMT
> Hi!
>
[quoted text clipped - 7 lines]
> override this behaviour. If a better solution should arise, please share
> it with me/us, cuz I could use it somewhere too :p
Thanks for the pointer - I implemented a TableCellEditor and it appears
that I dont need to double click, a single click on the cell results in my
component getting all subsequent mouse events
minsc - 26 May 2004 18:57 GMT
>>Hi!
>>
[quoted text clipped - 12 lines]
> that I dont need to double click, a single click on the cell results in my
> component getting all subsequent mouse events
That's just great! Thanks for telling me, I really thought it only
appeared on doubleclick.. Thanks for trying it :)
Greetz,
Pieter Bonne.