Description
The JFXPanel.setScene method blocks EDT while invoking a runnable on FX thread. Though it doesn't cause problems with the exact runnable it posts, it demonstrates a bad practice breaking the rule which says "never block the event thread".
java.awt.EventQueue.createSecondaryLoop() API should be used instead of wait().
java.awt.EventQueue.createSecondaryLoop() API should be used instead of wait().
Attachments
Issue Links
- relates to
-
JDK-8231372 JFXPanel fails to render if setScene called on Swing thread
- Resolved