On Fri, 20 Mar 2026 15:52:01 GMT, Marius Hanl <[email protected]> wrote:
> `StubToolkit` does not run anything later. Good point. I wonder what would it take to implement the runLater functionality in the StubToolkit to make it behave closer to the real thing. It does not look like a trivial thing because it has to run deferred Runnables in the caller thread (?). > What do you think at removing the `Platform.runLater()` calls in `Control`s > at one point? This is probably a more important question. What are the kinds of scenarios when `Platform.runLater()` is called? You are right, deferring things like layout might cause flicker so perhaps those should be fixed (I recall there is an existing bug in the `SplitPane` around setting dividers where unnecessary `runLater` was called). To answer your question (and it's just my opinion) - we might want to fix the obvious and known cases which cause bugs or flicker; the problem is reviewing the code and the risk of regression. I really want to move the platform forward with bug fixes and new features, we just need to find a good balance. I think we have a good and diverse group right now, we are able to discuss complicated issues and move forward (thank you all!), so I am optimistic. On the other hand, the number of RFRs has been growing lately and is currently at 34 :-( ------------- PR Comment: https://git.openjdk.org/jfx/pull/2095#issuecomment-4099624375
