Here you can find the source of invokeLater(Runnable runnable)
public static void invokeLater(Runnable runnable)
//package com.java2s; //License from project: Apache License import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Main { private static ExecutorService executorService = Executors.newCachedThreadPool(); public static void invokeLater(Runnable runnable) { executorService.execute(runnable); }/* w w w . j av a2s .c om*/ }