A JTable consisting of strings using the default editor requires the
user to double-click on the cell to edit. I would like to set up my
JTable so the user can start editing after a single click or
immediately after arriving at the cell using the tab key. Is there an
easy way to do this, or do I need to override the mouse and key
behavior for the JTable to make this happen?
Mike Westerfield
Philippe DE RIVAROLA - 28 Sep 2004 09:23 GMT
You call call the setClickCountToStart on the DefaultCellEditor to enable
edition
on one click instead of two.
For direct edition using the tab key it already works by default. If you
type some
text when a cell is selected and focussed, it will automatically start the
edition
(event if you don't see the caret blinking).
Philippe