Integrated: 8306119: Many components respond to a mouse event by requesting focus without supplying the MOUSE_EVENT cause

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon May 29 08:45:14 UTC 2023


On Tue, 16 May 2023 08:55:03 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Many Swing components request a focus transfer in response to a mouse event, but fail to supply a Cause when requesting focus. A focus event listener will find the cause to be UNKNOWN, but MOUSE_EVENT would be more appropriate. 
> Fixed by adding MOUSE_EVENT cause to requestFocus() when it is called for mouse events...
> 
> All jtreg/jck tests are ok..

This pull request has now been integrated.

Changeset: 70130d3b
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/70130d3b16e76364ede72dec421ed6e7c40467fe
Stats:     128 lines in 12 files changed: 111 ins; 0 del; 17 mod

8306119: Many components respond to a mouse event by requesting focus without supplying the MOUSE_EVENT cause

Reviewed-by: jdv

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

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



More information about the client-libs-dev mailing list