RFR: 8254841: [macos] Enter or Exit events are shouldn't be displayed while resizing [v2]
Alisen Chung
github.com+90066231+alisenchung at openjdk.java.net
Wed Sep 15 08:24:52 UTC 2021
On Wed, 15 Sep 2021 07:42:40 GMT, Pankaj Bansal <pbansal at openjdk.org> wrote:
>> 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)
I use the frame size to find the correct location of the mouse for robot, so moving the frame to the center of the screen would make calculating mouse locations more complicated...
And I need some space to expand the window, which could be limited if the frame were to be in the center, so in this case it's probably better to keep the window in the top left corner? Unless there's a reasoning I missed for moving it to the center?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5497
More information about the client-libs-dev
mailing list