On Thu, 3 Nov 2022 07:05:10 GMT, Prasanta Sadhukhan <[email protected]> 
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.

test/jdk/javax/swing/JTable/BugCellEditorListener.java line 51:

> 49:     static volatile boolean cancelled;
> 50: 
> 51:     public static void main(String [] args) throws Exception {

Can the test validates all installed L&F and not only default metal/aqua?

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

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

Reply via email to