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

Kevin Rushforth kcr at openjdk.org
Wed Feb 15 21:38:23 UTC 2023


On Mon, 13 Feb 2023 19:31:56 GMT, Marius Hanl <mhanl at openjdk.org> wrote:

> This PR adds the last missing method for dealing with nested event loops.
> As also written in the ticket, there is currently no (public) way to find out whether it is safe to start an event loop now or not.
> Classes like `Dialog` check via `Toolkit.getToolkit().canStartNestedEventLoop()` (sun api), if it safe to start a nested event loop before doing so.

A system test is best. As I'm sure you noticed, StubToolkit doesn't implement any of the nested event loop methods, and I don't think there is much value in doing that.

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

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


More information about the openjfx-dev mailing list