Here you can find the source of invokeLaterEDT(final Runnable runnable)
Parameter | Description |
---|---|
runnable | runnable code dedicated to Swing |
public static void invokeLaterEDT(final Runnable runnable)
//package com.java2s; import javax.swing.SwingUtilities; public class Main { /**/* w ww. j av a 2 s . com*/ * Execute LATER the given runnable code dedicated to Swing using the Event Dispatcher Thread (EDT) * @param runnable runnable code dedicated to Swing */ public static void invokeLaterEDT(final Runnable runnable) { // current Thread is NOT EDT, simply invoke later runnable using EDT: SwingUtilities.invokeLater(runnable); } }