Java Swing UI Thread Event invokeAndContiune(Runnable runnable)

Here you can find the source of invokeAndContiune(Runnable runnable)

Description

invoke And Contiune

License

Open Source License

Declaration

public static void invokeAndContiune(Runnable runnable) 

Method Source Code

//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);
        }

    }
}

Related

  1. getInstalledThemes(LookAndFeel laf)
  2. invoke(Runnable r)
  3. invoke(Runnable runnable)
  4. invoke(Runnable runnable)
  5. invokeAfter(final Runnable execute, int after)
  6. invokeAndWait(final Runnable r)
  7. invokeAndWait(Runnable task)
  8. invokeAndWaitAsNeeded(Runnable r)
  9. invokeAndWaitEDT(final Runnable runnable)