RFR: 8315655: [macos] Right click and dragging over a component with a popup menu will open the popup

Harshitha Onkar honkar at openjdk.org
Thu Jun 6 05:07:43 UTC 2024


On Wed, 5 Jun 2024 23:33:21 GMT, Alisen Chung <achung at openjdk.org> wrote:

> Issue is a mouse drag will trigger a popup in macos, but not in linux or windows.
> The solution is to add a check for a mouse pressed event to show popup and prevent mouse entered events from triggering the popup

Fix works as expected and similar to native apps.

test/jdk/javax/swing/JPopupMenu/MouseDragPopupTest.java line 53:

> 51:                 3) Observe that the popup menu assigned to the inner JPanel appears
> 52:                 (macOS) or does not appear (Windows, Linux)
> 53:                 """;

Pass or Fail condition not clear from the instructions. rephrase?

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

PR Review: https://git.openjdk.org/jdk/pull/19569#pullrequestreview-2100801401
PR Review Comment: https://git.openjdk.org/jdk/pull/19569#discussion_r1628777810


More information about the client-libs-dev mailing list