> I am trying to add an undo listener to a jtable but could not get it to
> work. Does anyone know how to add a undo function to a jtable assuming
> the default cell editor component is a jtextfield?
JTable does not provide Undo support, so you will need to add the support
yourself. Actually, you will want to add the support to the TableModel,
not the JTable.
There is some information on Undo support in the Java Tutorial, but it is
oriented toward text components. For a more complete treatment, check out
Kim Topley's "Core SWING advanced programming".

Signature
Regards,
John McGrath