Java tutorial
//package com.java2s; import javafx.application.Platform; public class Main { public static void runActionLater(Runnable runnable) { Platform.runLater(runnable); } }