I am trying to make all the cells of a JTable uneditable when double clicked by the user. I have read a lot of forum posts and the general consensus is to create a new table
Just override the isCellEditable method of the DefaultTableModel class. The quick way to do this:
isCellEditable
DefaultTableModel
JTable table = new JTable(); DefaultTableModel dtm = new DefaultTableModel(0, 0) { public boolean isCellEditable(int row, int column) { return false; } }; table.setModel(dtm);