posted 23 years ago
Hello everyone:
I am creating a JTable, for which when user clicks a cell in the first column, the whole row will be selected, when user clicks any cell in other columns, only the single cell will be selected. Can someone please sugguest me a good approach to do this?
I think that I may disable Row selection by
jTable1.setRowSelectionAllowed(false);
then use a cell renderer or listener for the first column, and enable RowSelection everytime the user chooses cell from first column. ...
I think it is not so easy to implement, can someone suggest me a clean way to solve my problem?
Thanks
Sun Certified Programmer for Java Platform