简体   繁体   中英

Jtable with protected and selectable cell

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 .

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM