G'day,
Hi, sorry if this is obvious, I've been struggling with it for a few
hours now and am ready to say 'uncle'. I've got a JTable with columns
1-x filled with data and column 0 has a set of labels describing the
data in it's row. I want to make it so you cannot select any cells in
column 0 but haven't been able to figure out how to do this. What's
the correct approach? Do I have to write a bunch of event listeners (
keyPressed, mousePressed, etc ) for the table, or is there something
I'm missing.
Thanks,
Matt
Nick H - 11 Feb 2004 14:41 GMT
> G'day,
>
[quoted text clipped - 10 lines]
>
> Matt
there is a ColumnSelectionListener (or similar, that could be slightly
different) which will handle what happens when you select a particular
column. So you could then get it to check if column 0 is selected, and
if so, deselect it (i think by making column -1 selected? maybe. look it up)
hth

Signature
nick h