RFR: 6788481: CellEditorListener.editingCanceled is never called

Phil Race prr at openjdk.org
Thu Nov 3 21:34:53 UTC 2022


On Thu, 3 Nov 2022 07:05:10 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> When editing of a table cell is canceled, the function editingCanceled of the registered listener CellEditorListener is not called as actionPerformed on ESC key press was not notifying the "cancel" listeners.
> Fix is to handle "Cancel" action in actionPerformed() by forwarding the Cancel message from CellEditor to the delegate so that it can call `AbstractCellEditor.fireEditingCanceled(`) which notifies all listeners of cancel event.

Marked as reviewed by prr (Reviewer).

I assume you ran all JTable tests (at leas) not just this new test.

-------------

PR: https://git.openjdk.org/jdk/pull/10964



More information about the client-libs-dev mailing list