RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

Phil Race prr at openjdk.org
Thu Feb 16 23:19:09 UTC 2023


On Thu, 16 Feb 2023 18:54:18 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> @prrace What is your preference here?
>> Since `enterNestedEventLoop` and `exitNestedEventLoop` throw an exception when not on the fx user thread, I feel like it makes sense to also add it here as well.
>
> Phil's comment got me thinking about this further. All other event loop methods, including `isNestedLoopRunning`, need to be called on the JavaFX thread. So I prefer option 1 as well for consistency.

Yes, I agree.

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

PR: https://git.openjdk.org/jfx/pull/1031


More information about the openjfx-dev mailing list