static void makeTableUneditable(JTable table) { for (int c = 0; c < table.getColumnCount(); c++) { Class col_class = table.getColumnClass(c); print("Column " + c + " + class: " + col_class); table.setDefaultEditor(col_class, null); // remove editor } }