RFR: 8315986: javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine its location [v4]

Alexey Ivanov aivanov at openjdk.org
Thu Oct 5 16:01:24 UTC 2023


On Thu, 5 Oct 2023 15:29:15 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> If you concede they are different, then what change you want me to do? If you say center is safer and then still use menuLocation coordinate which is obtained via getLocationScreen, it's confusing..

I see no big difference in dragging mouse from the centre to the centre compared to +10 offset.

This is what I mean:

https://github.com/aivanov-jdk/jdk/commit/da8213be220287ec4b9f7921fcd3ae4b4ece802d

> I think it's good as it is...

I think it can be simplified.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15677#discussion_r1347655722


More information about the client-libs-dev mailing list