RFR: 8350048: Enforce threading restrictions for show and hide methods in Window, Control, and Skin [v3]
Andy Goryachev
angorya at openjdk.org
Fri Feb 28 19:28:58 UTC 2025
On Fri, 28 Feb 2025 15:33:13 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> MenuBarSkin line 799
> ComboBoxListViewSkin line 199
ComboBoxListViewSkin - thanks for the suggestion!
MenuBarSkin - is a bit more complex case because of the interaction with the system menu `Toolkit.getToolkit().getSystemMenu().isSupported()` which needs to be called from the FX application thread.
We probably should disallow creating MenuBars in background thread (similar to Window, WebView, and HtmlEditor) in the constructor. What do you think?
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1717#issuecomment-2691393337
More information about the openjfx-dev
mailing list