2

I'm following along the example from JxBrowser-Examples to show context menu in my JxBrowser web app. However, this popup only shows once, and it never shows up again.

My step is to right click anywhere inside the Java Swing app, and context menu shows up as see in the following screenshot, context menu screenshots And I right clicked again and again, and context menu never shows up again.

leoflower
  • 563
  • 7
  • 13

1 Answers1

0

You need to call ShowContextMenuCallback.Action::close whenever the menu goes away. In the example they call tell.close() in the implementation of popupMenuCanceled but they also call it after performing each action. In my implementation I found it easier to just call close() in the implementation of popupMenuWillBecomeInvisible.

Rangi Keen
  • 935
  • 9
  • 29