I have defined cell editors for the two columns in my table in the following manner:
Java Code:
JComboBox combo = new JComboBox(); //code to add item
This example overrides editCellAt() in a JTable having a DefaultCellEditor using JTextField.
editCellAt()
JTable
DefaultCellEditor
JTextField
You can bind the Space key to the startEditing action defined for JTable:
startEditing
table.getInputMap().put( KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), "startEditing");