Hi,
        I work with SDK 1.2.2, and this version lacks changeSelectionModel(csm,
columnIndex, toggle, extend).
        How can I solve this problem? The workaround given is for SDK 1.3.

Thanks

>
>
>
>
> Philip Milne schrieb:
> >
> > My apologies for mis-evaluating this bug. I had thought the issue
> > was that non-recatngular shapes could not be selected in the JTable
> > which is something that is unlikely that we will be able to change
> > now. Actually, the bug is marked "will not fix" on my system, not as
> > "not a bug" as you have noted. As it happens, both are inappropriate
> > here as the issue is fixed in 1.4. I've updated the bug report to point
> > to bug 4314209 which is and contains a workaround for older releases.
> >
>
> Thanks for the pointer to a workaround. In the meantime I used a
> quickhack like:
>
>     ListSelectionModel rsm = getSelectionModel();
>     ListSelectionModel csm = getColumnModel().getSelectionModel();
>     changeSelectionModel(rsm, rowIndex, toggle, extend);
>     //CHANGED:
>     if (cellSelectionEnabled) {
>       // this automatically selects the colum
>       // you'll need some gesture external to the JTable to
>       // deselect columns (f.i. in JTableHeader)
>       csm.addSelectionInterval(columnIndex, columnIndex);
>     } else {
>       changeSelectionModel(csm, columnIndex, toggle, extend);
>     }
>
> And you are right, I misquoted the reason for closing the bug. It's
> indeed "will not be fixed".
>
> BTW: Will table editing be fixed in 1.4? <grin>
>
> Greetings
> Jeanette
>
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to