Jtable with protected and selectable cell

117 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 best solutions below

0
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.