Jtable with protected and selectable cell

101 views Asked by At

How to make a JTable cells selectable while they are set non editable. when i doubkle click at the moment its not selecting the cells. while want it to slecet the cell so that can be copied by contorl c .

1

There are 1 answers

0
trashgod On

You may be looking for a way to selectAll() in the cell editor's text component. The approach cited here works for F2 or a MouseEvent.