Implement proper JTable editing ?


Hi!

Have anyone ever succeded in making a editable JTable behave properly regarding first keystroke and selection ?

What SHOULD happen is as follows:

User has selected a cell, with e.g. "Cell 1" as contents.
User press "X", then the cell should be cleared, and the only contents should be "X".
This is STANDARD editable table behavior.

What DOES happen is as follows:

User has selected a cell, with e.g. "Cell 1" as contents.
User press "X", then the contents is now "Cell 1X".
This is Java's editable table behavior - WHY!?

By doing a selectAll() on the editor when it gets focus (if it is a JTextComponent) we can get close - but then
what happens is that the cell gets selected, but only AFTER the keyevent has been sent, so the contents is still "Cell 1X", but everything is selected to the next keystroke will clear the cell....which is very BAD userfriendly-wise.

I have searched for a solution for this every 3-6 months, the last 2 years - but noone have yet to come up with a workable solution :(

Anyone bright readers out there ?