On Mon, 13 Feb 2023 19:31:56 GMT, Marius Hanl <mh...@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.

Okay, I found the use case you had, apparently you want to be able to show 
dialogs from an uncaught exception handler which could trigger when an 
exception occurs during layout.  When it returns `false` you use 
`Platform.runLater`, but what's the reason you don't always use 
`Platform.runLater` to show the dialog?

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

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

Reply via email to