placing JTable cell in edit mode using space bar key

On my table, I have set:

table.putClientProperty("JTable.autoStartsEdit", Boolean.FALSE);

The user uses F2 to edit cells. This works great.

But I'd also like the ability to place an cell in edit mode when the user presses the space bar key. How can I achieve this.

thanks

[329 byte] By [tsca] at [2007-11-27 3:54:01]
# 1
This posting shows how to use the same Action for multiple KeyStrokes: http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html
camickra at 2007-7-12 8:58:07 > top of Java-index,Desktop,Core GUI APIs...