JFXPanel.setScene(Scene) uses bad synchronization pattern

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 8
    • Component/s: javafx

      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().

            Assignee:
            Prasanta Sadhukhan
            Reporter:
            Anton Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: