model.cancelInsert(true);
break;
case 10: // enter
int index = model.getInsertRowIndex();
try {
model.postInsertRecord(false, true);
if (!model.isInserting()) {
model.insertRecord(index + 1);
}
} catch (SQLException e1) {
MessageUtil.showErrorDialog("Could not create row in " + table.getDataset().getQualifiedNameWithType() + ".", e1);