RFR: 8349096: Split/MenuButton: exception initializing in a background thread

Kevin Rushforth kcr at openjdk.org
Wed Feb 12 23:51:13 UTC 2025


On Wed, 12 Feb 2025 20:15:03 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> ## Root Cause
> 
> The ContextMenu (PopupWindow) cannot be shown in a background thread.
> 
> ## Solution
> 
> Bail out of `show()` if in a background thread.

One more reason to disallow show in this case is that ContextMenu is a descendent of PopupWindow, and whatever else we do, we need to disallow calling `PopupWindow::show` from a background thread.

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

PR Comment: https://git.openjdk.org/jfx/pull/1709#issuecomment-2655097696


More information about the openjfx-dev mailing list