Java Swing UI Thread Event isEventDispatchThread()

Here you can find the source of isEventDispatchThread()

Description

is Event Dispatch Thread

License

Apache License

Declaration

static boolean isEventDispatchThread() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.SwingUtilities;

public class Main {
    static boolean isEventDispatchThread() {
        try {//  ww  w.j ava2 s.c  o  m
            return SwingUtilities.isEventDispatchThread();
        } catch (final NullPointerException e) {
            return false;
        }
    }
}

Related

  1. invokeOnEventThread(Runnable runnable)
  2. isEDT()
  3. isEDT()
  4. isEDT()
  5. isEventDispatchThread()
  6. isLinefeedTag(HTML.Tag tag)
  7. onShowingChanged(final JComponent component, final Runnable callback)
  8. processOnSwingEventThread(Runnable todo, boolean wait)
  9. resultOfOnEventThread(final Callable task)