--- /home/mblaesing/src/netbeans-0.7-beta/db.dataview/src/org/netbeans/modules/db/dataview/output/DataViewTableUI.java.orig 2011-01-22 20:35:17.000000000 +0100 +++ /home/mblaesing/src/netbeans-0.7-beta/db.dataview/src/org/netbeans/modules/db/dataview/output/DataViewTableUI.java 2011-01-22 20:59:38.000000000 +0100 @@ -192,21 +192,14 @@ if (row == -1) { return; } - editCellAt(row, col); - TableCellEditor editor = getCellEditor(); - if (editor != null) { - DBColumn dbcol = getDBColumn(col); - if (dbcol.isGenerated() || !dbcol.isNullable()) { - Toolkit.getDefaultToolkit().beep(); - editor.stopCellEditing(); - } else { - editor.getTableCellEditorComponent(DataViewTableUI.this, null, rowSelectionAllowed, row, col); - setValueAt(null, row, col); - editor.stopCellEditing(); - } - setRowSelectionInterval(row, row); + DBColumn dbcol = getDBColumn(col); + if (dbcol.isGenerated() || !dbcol.isNullable()) { + Toolkit.getDefaultToolkit().beep(); + } else { + setValueAt("", row, col); } + setRowSelectionInterval(row, row); } else if (e.isControlDown() && e.getKeyChar() == KeyEvent.VK_1) { int row = getSelectedRow(); int col = getSelectedColumn(); @@ -214,25 +207,16 @@ return; } - editCellAt(row, col); - TableCellEditor editor = getCellEditor(); - if (editor != null) { - DBColumn dbcol = getDBColumn(col); - Object val = getValueAt(row, col); - if (dbcol.isGenerated() || !dbcol.hasDefault()) { - Toolkit.getDefaultToolkit().beep(); - editor.stopCellEditing(); - } else if (val != null && val instanceof String && ((String) val).equals("")) { - editor.getTableCellEditorComponent(DataViewTableUI.this, "", rowSelectionAllowed, row, col); - setValueAt(null, row, col); - editor.stopCellEditing(); - } else { - editor.getTableCellEditorComponent(DataViewTableUI.this, "", rowSelectionAllowed, row, col); - setValueAt("", row, col); - editor.stopCellEditing(); - } - setRowSelectionInterval(row, row); + DBColumn dbcol = getDBColumn(col); + Object val = getValueAt(row, col); + if (dbcol.isGenerated() || !dbcol.hasDefault()) { + Toolkit.getDefaultToolkit().beep(); + } else if (val != null && val instanceof String && ((String) val).equals("")) { + setValueAt(null, row, col); + } else { + setValueAt("", row, col); } + setRowSelectionInterval(row, row); } }