Java non-editable JTables
by Steven Fletcher · in Technical Issues · 04/25/2005 (7:54 pm) · 1 replies
Look, this is going to sound really stupid, but...
How do you make JTables non-editable???
There's no setEditable method, and setting the cell editor to null doesn't seem to do the trick.
How do you make JTables non-editable???
There's no setEditable method, and setting the cell editor to null doesn't seem to do the trick.
Steven Fletcher
DefaultTableModel tableModel = new DefaultTableModel(aaData, aQuestTableHeader) { public boolean isCellEditable(int row, int column) {return false;} }; questTable.setModel(tableModel);