Tuesday, December 4, 2001 07:14 PM
Let me share my experience - just discovered the method recently.
I use a sub-class of JTable, where I override the
First, do a
super.editCellAt(), and store the boolean result. The
super method initialises the appropriate cell editor component.
Next, get the cell editor component using
getEditorComponent. Check whether it is an instance of
JTextField. If it is, invoke
selectAll() on it.
Finally, return the boolean result from the