Explain to the newcomer in the JAVA area what this phrase means:

SwingUtilities.invokeLater(new Runnable() { public void run(){ .... } }); 

    1 answer 1

    InvokeLater places the executable unit, Runnable, in the event queue - event dispatch thread. All actions related to event handling are placed in the same queue, for example. Then, when it is your turn, the Run method of the Runnable object is called. It is used when a deferred action is required, or something must be done strictly in UI-thread.