Selection of text in uneditable cells in JTable

Is it possible to be able to select text in an uneditable cell in a JTable for copy and paste purposes?

I would like to make the first mouse click select the row and the second the cell. It would be good if it was possible to select only parts of a text in an uneditable cell as well.

Thanks!

[311 byte] By [Elin-Uddenberga] at [2007-11-26 16:31:41]
# 1

The default Ctrl+C Actions is to copy the entire row to the clipboard. You can write a custom action to copy only the contents of the selected cell to the clipboard. This posting shows how to create a custom Action:

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=657819

Not sure how you would do partial text selection, since a cell is not a real component.

camickra at 2007-7-8 22:56:13 > top of Java-index,Desktop,Core GUI APIs...