import javafx.application.Platform; static void jfxLater(Runnable r) { Platform.runLater(r); }