Here you can find the source of invokeAndContiune(Runnable runnable)
public static void invokeAndContiune(Runnable runnable)
//package com.java2s; //License from project: Open Source License import javax.swing.SwingUtilities; public class Main { public static void invokeAndContiune(Runnable runnable) { if (SwingUtilities.isEventDispatchThread()) { runnable.run();/*from w w w.ja v a2 s.c o m*/ } else { SwingUtilities.invokeLater(runnable); } } }