Java Swing UI Thread Event isEDT()

Here you can find the source of isEDT()

Description

Returns true if the current thread is the Event Dispatcher Thread (EDT)

License

Open Source License

Return

true if the current thread is the Event Dispatcher Thread (EDT)

Declaration

public static boolean isEDT() 

Method Source Code


//package com.java2s;

import javax.swing.SwingUtilities;

public class Main {
    /**//from   www.ja v a 2 s.c o  m
     * Returns true if the current thread is the Event Dispatcher Thread (EDT)
     *
     * @return true if the current thread is the Event Dispatcher Thread (EDT)
     */
    public static boolean isEDT() {
        return SwingUtilities.isEventDispatchThread();
    }
}

Related

  1. invokeOnEventDispatchThread(Runnable r)
  2. invokeOnEventDispatchThreadIfRequired(final Runnable runnable)
  3. invokeOnEventThread(Runnable r)
  4. invokeOnEventThread(Runnable r)
  5. invokeOnEventThread(Runnable runnable)
  6. isEDT()
  7. isEDT()
  8. isEventDispatchThread()
  9. isEventDispatchThread()