How To Disable Copying in JTable
Hi,I have a JTable, and when i select a row and then press CTRL-C(copy) i actually copy the entire row and then i can paste in notepad.I want to disable this feature.How do i do this?Thanks Prabhat
# 1
Remove the copy action from the table like this:
table.getActionMap().put("copy", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
}
});