Sorry for lack of clarity (and delay is response).
I want user to be able to select an individual cell or a block of cells by clicking and draging across a rectangular block of contiguos cells. In addition select a single row. For row selection I thought I could put a select arrow in the first column which, when clicked, would select the complete row.
Main Topics
Browse All Topics





by: zzynxPosted on 2009-04-14 at 00:41:45ID: 24135665
>> Rest of the time I want user to be able to block individual or group of cells so I have:
istSelecti onModel.MU LTIPLE_INT ERVAL_SELE CTION); // = selected rows shouldn't be consecutive abled(fals e); // false instead of true = you can't select individual cells
What do you mean with block?
I don't know if I understand you well, but if you *don't* want users to be able to select individual cells, you should have
myTable.setSelectionMode(L
myTable.setCellSelectionEn
Then clicking in whatever column of a row, selects automatically the whole row.
Is that what you want?