RFR: 8254841: [macos] Enter or Exit events are shouldn't be displayed while resizing [v2]

Pankaj Bansal pbansal at openjdk.java.net
Wed Sep 15 07:45:56 UTC 2021


On Tue, 14 Sep 2021 22:05:56 GMT, Alisen Chung <github.com+90066231+alisenchung at openjdk.org> wrote:

>> Added a resizing flag when the window is currently being resized to block mouseEntered and mouseExited events from being posted to that window.
>
> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   added bug ID to test

test/jdk/java/awt/event/MouseEvent/ResizeMouseExitEnterMisfire/ResizeMouseExitEnterMisfire.java line 61:

> 59:             public void run() {
> 60:                 frame = new JFrame();
> 61:                 frame.setSize(200, 200);

It is preferred to move the frame to centre of screen by calling frame.setLocationRelativeTo(null)

test/jdk/java/awt/event/MouseEvent/ResizeMouseExitEnterMisfire/ResizeMouseExitEnterMisfire.java line 175:

> 173:         test.resizeFromOutsideWindowTest();
> 174:     }
> 175: }

Please dispose the frame after the test is completed. Add a new line at EOF.

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

PR: https://git.openjdk.java.net/jdk/pull/5497



More information about the client-libs-dev mailing list